forked from taichi-dev/taichi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (67 loc) · 1.93 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
72
73
74
75
76
77
78
sudo: required
git:
depth: 50
common_sources: &all_sources
- ubuntu-toolchain-r-test
language: cpp
matrix:
include:
- os: osx
osx_image: xcode9
env:
- MATRIX_EVAL="CC=clang && CXX=clang++ && PYTHON=python3"
- os: linux
dist: trusty
addons:
apt:
sources: *all_sources
packages: ['g++-5']
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5 && PYTHON=python3.5"
- os: linux
dist: trusty
addons: &gcc6
apt:
sources: *all_sources
packages: ['g++-6']
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6 && PYTHON=python3.5"
- os: linux
dist: trusty
addons: &gcc6
apt:
sources: *all_sources
packages: ['g++-6']
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6 && PYTHON=python3.6"
- os: linux
dist: trusty
addons: &gcc7
apt:
sources: *all_sources
packages: ['g++-7']
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && PYTHON=python3.5"
- os: linux
dist: trusty
addons: &gcc7
apt:
sources: *all_sources
packages: ['g++-7']
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && PYTHON=python3.6"
before_install:
- eval "${MATRIX_EVAL}"
- echo $CXX
- echo $PYTHON
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="http://www.cmake.org/files/v3.6/cmake-3.6.3-Linux-x86_64.tar.gz"
mkdir cmake3 && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake3
export PATH=$PWD/cmake3/bin:${PATH}
echo "Installed CMake in $PWD/cmake3/bin:${PATH}"
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:deadsnakes/ppa; sudo apt-get update; sudo apt-get install $PYTHON-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo rm /opt/local/lib/libembree.2.dylib; brew update; brew install $PYTHON || brew upgrade python; fi
script:
- $PYTHON install.py ci