-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
67 lines (59 loc) · 2.47 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
version: '{build}'
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
GENERATOR: Visual Studio 15 2017 Win64
BUILD_TYPE: Debug
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
GENERATOR: Visual Studio 15 2017 Win64
BUILD_TYPE: Release
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- where cmake
- ps: Invoke-WebRequest -Uri https://cmake.org/files/v3.14/cmake-3.14.3-win64-x64.zip -OutFile cmake.zip
- 7z x cmake.zip -o"c:\Program Files (x86)\CMake\" -y
- ps: Get-ChildItem "C:\Program Files (x86)\CMake\"
- ps: Get-ChildItem "C:\Program Files (x86)\CMake\cmake-3.14.3-win64-x64\"
- ps: Copy-Item -Path "C:\Program Files (x86)\CMake\cmake-3.14.3-win64-x64\*" -Destination "C:\Program Files (x86)\CMake\" -Force -Recurse
- ps: Get-ChildItem "C:\Program Files (x86)\CMake\"
- ps: Get-ChildItem "C:\Program Files (x86)\CMake\cmake-3.14.3-win64-x64\"
- rm cmake.zip
- cmake --version
- msbuild /version
install:
- echo "Downloading conan..."
- set PATH=%PATH%;%PYTHON%/Scripts/
- pip.exe install conan
- conan user # Create the conan data directory
- conan --version
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
- conan remote add skypjack https://api.bintray.com/conan/skypjack/conan
- conan remote add conan-doom_strong_types https://api.bintray.com/conan/milerius/doom_strong_types
before_build:
- mkdir cmake-build-debug
- cd cmake-build-debug
- conan install ../.conan/windows -s build_type=%BUILD_TYPE%
- cmake ../ -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_IGNORE_PATH="C:/Program Files/Git/usr/bin"
build_script:
- cmake --build . --config %BUILD_TYPE% -- /verbosity:minimal /maxcpucount:3
- cd bin && ls
- ps: |
$filePattern = '*-test.exe'
foreach ($file in get-ChildItem $filePattern)
{
$var = $file.name
& cmd /c "$var --reporters=xml --out=$var-result.xml -s 2>&1"
}
on_failure:
- curl -s https://report.ci/annotate.py | python - --tool msvc --input build.log
on_finish:
# Framework with autodetection
- ps: |
$string = "$env:GENERATOR-$env:BUILD_TYPE"
echo $string
$string = $string -replace ' ', '-'
echo $string
Invoke-WebRequest -Uri https://report.ci/upload.py -OutFile upload.py
python upload.py -n "Doctest [appveyor $($string)]"