-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
71 lines (68 loc) · 2.13 KB
/
.travis.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
68
69
70
71
language: cpp
matrix:
include:
# Linux GCC x64
- os: linux
name: linux64 GCC 8
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- xorg-dev
- g++-8
before_install:
- eval "CC=gcc-8 && CXX=g++-8"
# Download and install cmake
- mkdir $HOME/cmake;
- export PATH="$HOME/cmake/bin:$PATH";
- travis_retry wget -q https://cmake.org/files/v3.15/cmake-3.15.1-Linux-x86_64.sh;
- sh cmake-3.15.1-Linux-x86_64.sh --prefix=$HOME/cmake --exclude-subdir --skip-license;
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DCI_BUILD=ON ..
- cmake --build . --config Release
# Windows MSVC x86
- os: windows
name: win32
language: shell
before_install:
- choco install python --version 3.7.0
- python -m pip install --upgrade pip
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install: pip3 install --upgrade pip
script:
- mkdir -p build
- cd build
- cmake -G "Visual Studio 15 2017" -DCI_BUILD=ON ..
- cmake --build . --config Release
# Windows MSVC x64
- os: windows
name: win64
language: shell
before_install:
- choco install python --version 3.7.0
- python -m pip install --upgrade pip
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install: pip3 install --upgrade pip
script:
- mkdir -p build
- cd build
- cmake -G "Visual Studio 15 2017 Win64" -DCI_BUILD=ON ..
- cmake --build . --config Release
# Windows MSVC x64 Debug
- os: windows
name: win64 debug
language: shell
before_install:
- choco install python --version 3.7.0
- python -m pip install --upgrade pip
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install: pip3 install --upgrade pip
script:
- mkdir -p build
- cd build
- cmake -G "Visual Studio 15 2017 Win64" -DCI_BUILD=ON ..
- cmake --build . --config Debug