forked from google/or-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
60 lines (52 loc) · 1.95 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
version: '{build}'
shallow_clone: true
platform: x64
environment:
MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
matrix:
# Makefile
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VS: 2017
BUILDER: make
LANGUAGE: all
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VS: 2015
BUILDER: make
LANGUAGE: all
# CMake
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VS: 2017
BUILDER: cmake
CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VS: 2015
BUILDER: cmake
CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
matrix:
fast_finish: false
before_build:
- git config --global user.email "[email protected]"
- git config --global user.name "CI"
- if "%VS%"=="2017" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- if "%VS%"=="2015" call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%VS%"=="2015" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
- tools\which csc.exe
- tools\which fsc.exe
- tools\which dotnet.exe
- cmake --version
- set PATH=C:\Python36-x64;%PATH%
- tools\which python.exe
- python -V
- python -m pip install virtualenv wheel six
# - set PATH="C:\Program Files\Java\jdk1.8.0\bin";%PATH%
- if "%BUILDER%"=="cmake" cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -G "%CMAKE_GENERATOR%"
- if "%BUILDER%"=="make" del "C:\Program Files\Git\usr\bin\sh.exe"
- if "%BUILDER%"=="make" tools\make detect
build_script:
- if "%BUILDER%"=="cmake" cmake --build build --config Release --target ALL_BUILD -- %MSBUILD_FLAGS%
- if "%BUILDER%"=="make" tools\make third_party
- if "%BUILDER%"=="make" tools\make help_%LANGUAGE%
- if "%BUILDER%"=="make" tools\make %LANGUAGE%
- if "%BUILDER%"=="make" tools\make test_%LANGUAGE%
test_script:
- if "%BUILDER%"=="cmake" cmake --build build --config Release --target RUN_TESTS