-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (43 loc) · 1.87 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
language: cpp
os:
- linux
- windows
- osx
compiler: gcc
dist: xenial
branches:
only:
- master
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
- gcc-9
- libglew-dev
- xorg-dev
- ninja-build
services:
- xvfb
env:
- MSBUILD_PATH="/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin"
before_install:
- mkdir $HOME/usr
- export PATH="$HOME/usr/bin:$PATH"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then travis_retry wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.15.0/cmake-3.15.0-Linux-x86_64.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then chmod +x cmake-3.15.0-Linux-x86_64.sh ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./cmake-3.15.0-Linux-x86_64.sh --prefix=$HOME/usr --exclude-subdir --skip-license > download_out_put.txt; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.15.4/cmake-3.15.4-Darwin-x86_64.tar.gz; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then tar -xf cmake-3.15.4-Darwin-x86_64.tar.gz; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then travis_retry wget https://github.com/Kitware/CMake/releases/download/v3.15.3/cmake-3.15.3-win32-x86.zip; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then unzip cmake-3.15.3-win32-x86.zip > cmake_out_put.txt ; fi
before_script:
- CXX=/usr/bin/g++-9 CC=/usr/bin/gcc-9
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update && brew install ninja; CC=/usr/bin/gcc && CXX=/usr/bin/g++; fi
script:
- cd $TRAVIS_BUILD_DIR
- chmod +x scripts/travis/*
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./scripts/travis/compile_linux.sh ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then ./scripts/travis/compile_windows.sh ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./scripts/travis/compile_osx.sh ; fi