-
Notifications
You must be signed in to change notification settings - Fork 707
/
.appveyor.yml
85 lines (74 loc) · 4.17 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: 'build-{build}-{branch}'
platform: x64
build:
parallel: true
cache:
- c:\tools\vcpkg\installed\ -> testing\dependencies\appveyor\install.bat
- c:\msys64\var\cache\pacman\pkg -> testing\dependencies\appveyor\install.bat
- c:\Deps\conda\ -> testing\dependencies\appveyor\anaconda.ps1
- c:\Deps\boost_1_67_0 -> testing\dependencies\appveyor\boost.bat
image:
- Visual Studio 2017
environment:
# Create expected SHELL variable for pipenv.
SHELL: 'windows'
CTEST_OUTPUT_ON_FAILURE: '1'
matrix:
- CMAKE_GENERATOR: 'MSYS Makefiles'
BUILDFLAGS: 'VERBOSE=1'
- CMAKE_GENERATOR: 'Visual Studio 15 2017 Win64'
BUILDFLAGS: '/verbosity:normal'
- CMAKE_GENERATOR: 'Ninja'
BUILDFLAGS: '-v'
- CMAKE_GENERATOR: 'Visual Studio 15 2017 Win64'
BUILDFLAGS: '/verbosity:normal'
ANACONDA_TESTS_ONLY: '1'
matrix:
fast_finish: true
init:
- set PATH=C:\msys64\MINGW64\bin;C:\msys64\usr\bin;%PATH%
- set PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%
# Remove Python 2.7 from path
- set PATH=%PATH:C:\Python27;=%
- set PATH=%PATH:C:\Python27\Scripts;=%
# Add Anaconda to PATH
- set PATH=C:\Deps\conda\Scripts;C:\Deps\conda\library\bin;%PATH%
# Put Boost libraries on PATH
- set PATH=C:\Deps\boost_1_67_0\lib;%PATH%
install:
- python -m pip install pipenv
- '%APPVEYOR_BUILD_FOLDER%\testing\dependencies\appveyor\install.bat'
- '%APPVEYOR_BUILD_FOLDER%\testing\dependencies\appveyor\boost.bat'
- ps: .$env:APPVEYOR_BUILD_FOLDER\testing\dependencies\appveyor\anaconda.ps1
- ps: .$env:APPVEYOR_BUILD_FOLDER\testing\dependencies\appveyor\install-msmpi.ps1
# extract step has to happen before the sh.exe workaround otherwise 7z will complain
before_build:
- python --version
- cmake --version
- cd C:\projects
- appveyor DownloadFile https://github.com/dev-cafe/cmake-cookbook/archive/%APPVEYOR_REPO_COMMIT%.zip
- '%APPVEYOR_BUILD_FOLDER%\testing\dependencies\appveyor\extract.bat'
# the pipenv lock was added as workaround for pipenv complaining about wrong checksum
# after upgrade to Python 3.7 on Appveyor
build_script:
- bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv lock"
- bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv install"
- if "%ANACONDA_TESTS_ONLY%"=="1" (
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-11/recipe-04'"
) else (
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-01/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-02/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-03/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-04/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-05/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-06/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-07/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-08/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-09/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-10/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-11/recipe-0[1-3]'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-12/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-13/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-14/recipe-*'"
)
deploy: off