diff options
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/appveyor.yml b/appveyor.yml index 08687595..f4a5970f 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -1,35 +1,23 @@ | |||
1 | --- | 1 | --- |
2 | cache: | 2 | cache: |
3 | - '%APPDATA%\downloads' | 3 | - '%USERPROFILE%\.conan' |
4 | 4 | ||
5 | install: | 5 | install: |
6 | # TODO(iphydf): Remove this when appveyor gets curl back, which it should | 6 | - set PATH=C:\Python38-x64\Scripts;%PATH% |
7 | # have according to https://www.appveyor.com/docs/how-to/download-file/. | 7 | - py -3 -m pip install conan |
8 | - choco install curl | 8 | - conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan |
9 | - refreshenv | ||
10 | - if not exist %APPDATA%\downloads mkdir %APPDATA%\downloads | ||
11 | - cd third_party | ||
12 | # libsodium | ||
13 | - mkdir libsodium && cd libsodium | ||
14 | - if not exist %APPDATA%\downloads\libsodium.zip curl -L https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-msvc.zip -o %APPDATA%\downloads\libsodium.zip | ||
15 | - unzip %APPDATA%\downloads\libsodium.zip | ||
16 | - cd .. | ||
17 | # pthreads-win32 | ||
18 | - mkdir pthreads-win32 && cd pthreads-win32 | ||
19 | - if not exist %APPDATA%\downloads\pthreads.zip curl -L ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip -o %APPDATA%\downloads\pthreads.zip | ||
20 | - unzip %APPDATA%\downloads\pthreads.zip | ||
21 | - cd ../.. | ||
22 | 9 | ||
23 | before_build: | 10 | before_build: |
24 | - cmake -B_build -H. -DBOOTSTRAP_DAEMON=OFF -DENABLE_SHARED=OFF -DBUILD_TOXAV=OFF -DTEST_TIMEOUT_SECONDS=120 -DAUTOTEST=ON | 11 | - ps: | |
12 | mkdir _build | ||
13 | cd _build | ||
14 | conan install .. | ||
25 | 15 | ||
26 | build: | 16 | build_script: |
27 | project: _build/INSTALL.vcxproj | 17 | - conan build .. --configure --build |
28 | 18 | ||
29 | test_script: | 19 | test_script: |
30 | - copy third_party\pthreads-win32\Pre-built.2\dll\x86\*.dll _build | ||
31 | - copy third_party\libsodium\Win32\Debug\v140\dynamic\libsodium.dll _build | ||
32 | - cd _build | ||
33 | # TODO(iphydf): Tests are unstable and slow on windows at the moment. | 20 | # TODO(iphydf): Tests are unstable and slow on windows at the moment. |
34 | - ctest -j50 --output-on-failure -C Debug & | 21 | - set CONAN_CPU_COUNT=50 |
22 | - conan build .. --test & | ||
35 | exit 0 | 23 | exit 0 |