-
Notifications
You must be signed in to change notification settings - Fork 169
/
.travis.yml
69 lines (67 loc) · 1.72 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
dist: trusty
sudo: true
language: cpp
cache: ccache
matrix:
include:
- os: linux
compiler: gcc # 4.8.4 by default on Trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libmpfr-dev
- libboost-filesystem-dev
- libboost-system-dev
- libboost-thread-dev
- libblas-dev
- liblapack-dev
- xorg-dev
- libglu1-mesa-dev
- python3-setuptools
- libpython3-dev
env:
- MATRIX_EVAL="export CONFIG=Debug && CHECK_UNDEFINED=ON && PYTHON=python3"
- os: linux
compiler: gcc-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- libmpfr-dev
- libboost-filesystem-dev
- libboost-system-dev
- libboost-thread-dev
- libblas-dev
- liblapack-dev
- xorg-dev
- libglu1-mesa-dev
- python3-setuptools
- libpython3-dev
env:
- MATRIX_EVAL="export CC=gcc-7 && CXX=g++-7 && CONFIG=Debug && CHECK_UNDEFINED=ON && PYTHON=python3"
- os: osx
compiler: clang
env:
- MATRIX_EVAL="export CONFIG=Debug && CHECK_UNDEFINED=ON && PYTHON=python3"
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
- eval "${MATRIX_EVAL}"
- ccache --max-size=5.0G
- ccache -V && ccache --show-stats && ccache --zero-stats
script:
# Tutorials and tests
- cd mex
- mkdir build
- cd build
- cmake .. -DMATLAB_PROXY=ON -DEMBREE_ISA_AVX=OFF -DEMBREE_ISA_AVX2=OFF -DEMBREE_ISA_AVX512SKX=OFF ../
- make -j 2
- ctest --verbose
- ccache --show-stats
- cd ../
- rm -rf build