diff options
-rw-r--r-- | appveyor.yml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..f7ada7f --- /dev/null +++ b/appveyor.yml | |||
@@ -0,0 +1,51 @@ | |||
1 | environment: | ||
2 | PATH: C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Windows\System32;C:\Windows;%PATH% | ||
3 | VSTEST: OFF | ||
4 | |||
5 | matrix: | ||
6 | # x86 builds | ||
7 | - GENERATOR: Visual Studio 14 2015 | ||
8 | CONFIG: Release | ||
9 | SHARED_LIBS: ON | ||
10 | - GENERATOR: Visual Studio 14 2015 | ||
11 | CONFIG: Release | ||
12 | SHARED_LIBS: OFF | ||
13 | - GENERATOR: Visual Studio 14 2015 | ||
14 | CONFIG: Debug | ||
15 | SHARED_LIBS: ON | ||
16 | - GENERATOR: Visual Studio 14 2015 | ||
17 | CONFIG: Debug | ||
18 | SHARED_LIBS: ON | ||
19 | |||
20 | # x64 builds | ||
21 | - GENERATOR: Visual Studio 14 2015 Win64 | ||
22 | CONFIG: Release | ||
23 | SHARED_LIBS: ON | ||
24 | - GENERATOR: Visual Studio 14 2015 Win64 | ||
25 | CONFIG: Release | ||
26 | SHARED_LIBS: OFF | ||
27 | - GENERATOR: Visual Studio 14 2015 Win64 | ||
28 | CONFIG: Debug | ||
29 | SHARED_LIBS: ON | ||
30 | - GENERATOR: Visual Studio 14 2015 Win64 | ||
31 | CONFIG: Debug | ||
32 | SHARED_LIBS: ON | ||
33 | |||
34 | init: | ||
35 | # update mysy2 | ||
36 | - C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors" | ||
37 | - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy" | ||
38 | - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S autoconf perl" | ||
39 | - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S git" | ||
40 | |||
41 | before_build: | ||
42 | - bash autogen.sh | ||
43 | - mkdir build | ||
44 | - cd build | ||
45 | - cmake .. -G "%GENERATOR%" -DBUILD_SHARED=%SHARED_LIBS% -DENABLE_VSTEST=%VSTEST% | ||
46 | |||
47 | build_script: | ||
48 | - cmake --build . --config %CONFIG% | ||
49 | |||
50 | test_script: | ||
51 | - ctest | ||