aboutsummaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml46
1 files changed, 26 insertions, 20 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 410ad12e..764d56d6 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -1,40 +1,46 @@
-image: Visual Studio 2015
+image: Visual Studio 2017
environment:
- #DEPLOY_DIR: libqmatrixclient-%APPVEYOR_BUILD_VERSION%
+ CMAKE_ARGS: '-G "NMake Makefiles JOM" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo'
matrix:
- - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- QTDIR: C:\Qt\5.9\msvc2017_64
- VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
+ - QTDIR: C:\Qt\5.13\msvc2017 # Fresh Qt, 32-bit
+ VCVARS: "vcvars32.bat"
+ PLATFORM: x86
+ - QTDIR: C:\Qt\5.13\msvc2017_64 # Fresh Qt, 64-bit
+ VCVARS: "vcvars64.bat"
PLATFORM:
- MAKETOOL: cmake
- - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- QTDIR: C:\Qt\5.9\msvc2017_64
- VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
+ - QTDIR: C:\Qt\5.9\msvc2017_64 # Oldest supported Qt, 64-bit, E2EE
+ VCVARS: "vcvars64.bat"
+ QMAKE_E2EE_ARGS: '"DEFINES += Quotient_E2EE_ENABLED USE_INTREE_LIBQOLM" "INCLUDEPATH += olm/include" "LIBS += -Lbuild/olm"'
+ CMAKE_E2EE_ARGS: '-DQuotient_ENABLE_E2EE=ON -DOlm_DIR=build/olm'
+ PLATFORM:
+ - QTDIR: C:\Qt\5.13\msvc2017_64 # Fresh Qt, 64-bit, E2EE
+ VCVARS: "vcvars64.bat"
+ QMAKE_E2EE_ARGS: '"DEFINES += Quotient_E2EE_ENABLED USE_INTREE_LIBQOLM" "INCLUDEPATH += olm/include" "LIBS += -Lbuild/olm"'
+ CMAKE_E2EE_ARGS: '-DQuotient_ENABLE_E2EE=ON -DOlm_DIR=build/olm'
PLATFORM:
- MAKETOOL: qmake
- - QTDIR: C:\Qt\5.9\msvc2015
- VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat"
- PLATFORM: x86
- MAKETOOL: cmake
init:
- call "%QTDIR%\bin\qtenv2.bat"
- set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
-- call "%VCVARS%" %platform%
+- call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\%VCVARS%" %PLATFORM%
- cd /D "%APPVEYOR_BUILD_FOLDER%"
before_build:
- git submodule update --init --recursive
-- if %MAKETOOL% == cmake cmake -G "NMake Makefiles JOM" -H. -Bbuild -DCMAKE_CXX_FLAGS="/EHsc /W3" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="%DEPLOY_DIR%"
+- git clone https://gitlab.matrix.org/matrix-org/olm.git
+- cmake %CMAKE_ARGS% -Holm -Bbuild/olm
+- cmake --build build/olm
build_script:
-- if %MAKETOOL% == cmake cmake --build build
-- if %MAKETOOL% == qmake qmake && jom
+- cmake %CMAKE_ARGS% %CMAKE_E2EE_ARGS% -H. -Bbuild
+- cmake --build build
+# qmake uses olm just built by CMake - it can't build olm on its own.
+- qmake -Wall quotest.pro -- %QMAKE_E2EE_ARGS% && jom
#after_build:
#- cmake --build build --target install
-#- 7z a libqmatrixclient.zip "%DEPLOY_DIR%\"
+#- 7z a quotient.zip "%DEPLOY_DIR%\"
# Uncomment this to connect to the AppVeyor build worker
#on_finish:
@@ -43,4 +49,4 @@ build_script:
test: off
#artifacts:
-#- path: libqmatrixclient.zip
+#- path: quotient.zip