-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
58 lines (47 loc) · 1.33 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
version: 'build-{build}-{branch}'
platform: x64
configuration:
- Release
build:
parallel: true
image:
- Visual Studio 2017
environment:
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"
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;=%
install:
- python -m pip install pipenv
before_build:
- python --version
- cmake --version
build_script:
# Test bare
- cd %APPVEYOR_BUILD_FOLDER%\chapter-11\recipe-02\cxx-example
- cmake -H. -Bbuild_bare
-G"%CMAKE_GENERATOR%"
-DCMAKE_BUILD_TYPE=%CONFIGURATION%
-DCMAKE_CONFIGURATION_TYPES=%CONFIGURATION%
- cmake --build build_bare
--config %CONFIGURATION%
-- %BUILDFLAGS%
# Test wrapped in custom.sh
- bash -c "./custom.sh build_custom"
# Test wrapped in collect_tests.py
- cd %APPVEYOR_BUILD_FOLDER%
- bash -c "pipenv lock"
- bash -c "pipenv install"
- bash -c "pipenv run python testing/collect_tests.py 'chapter-11/recipe-02'"
deploy: off