forked from chronoxor/CppTrader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
61 lines (53 loc) · 2.04 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
# Specify version format
version: "1.0.0.{build}"
# Image to use
image: Visual Studio 2019
# Branches to build
branches:
only:
- master
# Including commits with 'build' comment
only_commits:
message: build
# Build matrix
environment:
matrix:
- type: Cygwin
build: C:\cygwin64\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER/build; exec 0</dev/null; ./cygwin.sh"
command: C:\cygwin64\bin\bash -lc
- type: MinGW
build: call mingw.bat
command: cmd /C
- type: VisualStudio
build: call vs.bat
command: cmd /C
# Allow to fail on first error in matrix
matrix:
fast_finish: true
# Scripts that run after cloning repository
install:
# Chocolatey
- choco upgrade chocolatey
# Cygwin
- if "%type%"=="Cygwin" if not exist "C:\cygwin64" mkdir "C:\cygwin64"
- if "%type%"=="Cygwin" appveyor-retry appveyor DownloadFile "http://cygwin.com/setup-x86_64.exe" -FileName "C:\cygwin64\setup-x86_64.exe"
- if "%type%"=="Cygwin" C:\cygwin64\setup-x86_64.exe --quiet-mode --no-desktop --no-shortcuts --upgrade-also --root "C:\cygwin64" --local-package-dir "C:\cache\cygwin" --site "http://mirrors.kernel.org/sourceware/cygwin" --packages cmake,automake,make,gcc-core,gcc-g++,libjsoncpp19,librhash0,libuuid-devel,libuv1
# MinGW
- if "%type%"=="MinGW" if not exist "C:\mingw.7z" appveyor-retry appveyor DownloadFile "http://downloads.sourceforge.net/mingw-w64/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z" -FileName "C:\mingw.7z"
- if "%type%"=="MinGW" 7z x -y -oC:\ "C:\mingw.7z" > nul
- if "%type%"=="MinGW" set PATH=C:\mingw64\bin;%PATH:C:\Program Files\Git\usr\bin;=%
- if "%type%"=="MinGW" set INCLUDE=C:\mingw64\x86_64-w64-mingw32\include;%INCLUDE%
# Visual Studio
- if "%type%"=="VisualStudio" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
# CMake
- '%command% "cmake --version"'
# gil
- set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
- pip3 install gil
- gil update
# Build scripts
build_script:
- cd build
- '%build%'
# Test scripts
test: off