-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
43 lines (38 loc) · 1.77 KB
/
appveyor.yml
File metadata and controls
43 lines (38 loc) · 1.77 KB
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
version: 1.0.{build}
build:
verbosity: minimal
# Instead of specifying image at the top level, we use the APPVEYOR_BUILD_WORKER_IMAGE
# environment variable: https://www.appveyor.com/docs/build-environment/#using-multiple-images-for-the-same-build
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GENERATOR: "Visual Studio 14 2015"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: "Visual Studio 14 2015"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: "Visual Studio 15 2017"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
USING_JAVA: "yes"
# The set PATH line is modified from here: https://github.com/appveyor/ci/issues/1426
install:
- git submodule update --init --recursive
- set PATH=C:\Program Files\Java\jdk1.8.0\bin;%PATH%
# Note: was having issues with cmd not properly passing the quoted variable
# to cmake, so I switched to powershell. Judging from googletest's appveyor.yml,
# it seems that this should work: https://github.com/google/googletest/blob/master/appveyor.yml
build_script:
- ps: md build
- ps: cd build
- ps: cmake .. -G "$env:GENERATOR" -DCMAKE_CONFIGURATION_TYPES="Debug;Release"
- ps: cmake --build . --config Debug
- ps: cmake --build . --config Release
test_script:
- ps: .\Debug\runtest.exe
- ps: C:\Python35-x64\python.exe ..\test\integration_tests.py .\Debug\escape.exe
- ps: .\Release\runtest.exe
- ps: C:\Python35-x64\python.exe ..\test\integration_tests.py .\Release\escape.exe
- ps: cd ..
- ps: if ($env:USING_JAVA -eq "yes") {.\java\ci\win_ciscript.ps1} else {echo "Not running Java tests."}
# Preinstalled Python locations are listed here:
# https://www.appveyor.com/docs/windows-images-software/#python