forked from isl-org/Open3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (77 loc) · 2.26 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
79
80
81
82
83
84
85
matrix:
notifications:
email: false # turn off email notifications for build failure
language:
- python
- cpp
include:
# Default environment of Ubuntu 14.04
- os: linux
dist: trusty
sudo: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- cmake-data # to use cmake 3.0 or more recent
- cmake
env:
- PYTHON=3.6 CC=gcc-4.8 CXX=g++-4.8
# Similar environment of Ubuntu 16.04 (gcc 5.4)
# travis ci only supports Ubuntu 14.04 (trusty) gcc-5 and 6
# another option is to use docker.
- os: linux
dist: trusty
sudo: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- cmake-data # to use cmake 3.0 or more recent
- cmake
env:
- PYTHON=3.6 CC=gcc-6 && CXX=g++-6
# Default environment of MacOS El Capitan
# compiled using clang shipped with xcode8
- os: osx
osx_image: xcode8
env:
- PYTHON=3.6
# Default environment of MacOS Sierra
# compiled using clang shipped with xcode8.3
- os: osx
osx_image: xcode8.3
env:
- PYTHON=3.6
before_install:
# ISSUE: we may want to use '/scripts/install-deps-ubuntu.sh' in the future.
# At this moment, travis-ci supports up to ubuntu 14.04 and this environment
# does not recognize sudo apt-get install libglfw3-dev
# custom build GLFW3
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get install -y xorg-dev libglu1-mesa-dev libgl1-mesa-glx libglew-dev libjsoncpp-dev libeigen3-dev;
python -m pip install --user --upgrade pip wheel;
pyenv global system 3.6;
fi
# scripts/install-deps-osx.sh works well
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew install python;
./scripts/install-deps-osx.sh;
fi
# for reference, display cmake and python version
- python -V
- cmake --version
script:
# Build commands
- mkdir build
- cd build
- cmake ../src/
# make -j brings 'virtual memory exhausted: Cannot allocate memory' message
# this is presumably due to limited memory space of travis-ci
- make