-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
43 lines (34 loc) · 1.23 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
# configuration:
# - Release
platform:
- x64
# only valid for ubuntu at the moment
stack: python 3.7
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
GENERATOR: "Unix Makefiles"
init:
- cmd: SET PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%
install:
- python --version #needs to be here due to stack issues
- pip --version #needs to be here due to stack issues
- pip install conan
before_build:
- conan profile new default --detect
- conan remote list
- sh: conan profile update settings.compiler.libcxx=libstdc++11 default
- mkdir build
- cd build
- conan install .. -s build_type=Release
build_script:
- cmake -DCMAKE_TOOLCHAIN_FILE:STRING="./conan_paths.cmake" ..
- cmake --build . --config Release
#changing into folder to suppress errorcode by failed ctest
test_script:
- ps: ctest --build-config Release -VV
after_test:
- ps: $wc = New-Object 'System.Net.WebClient'
- ps: Get-ChildItem -Path ./ -Filter *.xml -File -Name -Recurse | ForEach-Object {$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $_))}