diff options
author | iphydf <iphydf@users.noreply.github.com> | 2017-06-04 20:58:28 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2017-06-05 13:45:20 +0000 |
commit | cb69b8a986b050020e175654a68ca62b6bfb8bc7 (patch) | |
tree | cb9015459cc86a127663259702fe12d0ca20c3f3 /appveyor.yml | |
parent | 7f5b057b05ab9262c878aef03dc92d3fbdad31ad (diff) |
Build tests on appveyor, the MSVC build.
Tests are not actually ran on appveyor for now, since they all fault for
some reason. For now, we just build them. Also, some tests are disabled
on msvc entirely, because they don't even compile. We'll need to look
into those, later. They are disabled using `MSVC_DONT_BUILD`.
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/appveyor.yml b/appveyor.yml index 4b4bfb20..66453ccf 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -1,15 +1,26 @@ | |||
1 | cache: | ||
2 | - '%APPDATA%\downloads' | ||
3 | |||
1 | install: | 4 | install: |
2 | # TODO(iphydf): Remove this when appveyor gets curl back, which it should have | 5 | # TODO(iphydf): Remove this when appveyor gets curl back, which it should have |
3 | # according to https://www.appveyor.com/docs/how-to/download-file/. | 6 | # according to https://www.appveyor.com/docs/how-to/download-file/. |
4 | - choco install curl | 7 | - choco install curl |
5 | - refreshenv | 8 | - refreshenv |
9 | - if not exist %APPDATA%\downloads mkdir %APPDATA%\downloads | ||
10 | # libcheck | ||
11 | - if not exist %APPDATA%\downloads\check.zip curl -L https://github.com/libcheck/check/archive/0.11.0.zip -o %APPDATA%\downloads\check.zip | ||
12 | - unzip %APPDATA%\downloads\check.zip && cd check-0.11.0 | ||
13 | - if not exist "%PROGRAMFILES%\check\include\check.h" cmake . && msbuild INSTALL.vcxproj | ||
14 | - cd .. | ||
15 | # libsodium | ||
6 | - mkdir libsodium && cd libsodium | 16 | - mkdir libsodium && cd libsodium |
7 | - curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.11-msvc.zip -o libsodium.zip | 17 | - if not exist %APPDATA%\downloads\libsodium.zip curl -L https://download.libsodium.org/libsodium/releases/libsodium-1.0.12-msvc.zip -o %APPDATA%\downloads\libsodium.zip |
8 | - unzip libsodium.zip | 18 | - unzip %APPDATA%\downloads\libsodium.zip |
9 | - cd .. | 19 | - cd .. |
20 | # pthreads-win32 | ||
10 | - mkdir pthreads-win32 && cd pthreads-win32 | 21 | - mkdir pthreads-win32 && cd pthreads-win32 |
11 | - curl ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip -o pthreads.zip | 22 | - 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 |
12 | - unzip pthreads.zip | 23 | - unzip %APPDATA%\downloads\pthreads.zip |
13 | - cd .. | 24 | - cd .. |
14 | 25 | ||
15 | before_build: | 26 | before_build: |
@@ -18,6 +29,10 @@ before_build: | |||
18 | build: | 29 | build: |
19 | project: INSTALL.vcxproj | 30 | project: INSTALL.vcxproj |
20 | 31 | ||
32 | # TODO(iphydf): Tests all segfault on Windows at the moment. | ||
33 | #test_script: | ||
34 | #- ctest -C Debug | ||
35 | |||
21 | branches: | 36 | branches: |
22 | only: | 37 | only: |
23 | - master | 38 | - master |