forked from chronoxor/CppServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
55 lines (47 loc) · 1.42 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
# Specify version format
version: "1.0.1.{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: 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
# 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 INCLUDE=C:\mingw64\x86_64-w64-mingw32\include;%INCLUDE%
- if "%type%"=="MinGW" set LIB=C:\mingw64\x86_64-w64-mingw32\lib;%LIB%
- if "%type%"=="MinGW" set PATH=C:\mingw64\bin;%PATH:C:\Program Files\Git\usr\bin;=%
# 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