forked from ipc-sim/rigid-ipc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (63 loc) · 1.67 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
language: cpp
# cache: ccache
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'ppa:mhier/libboost-latest'
packages:
- g++-9
- gcc-9
- xorg-dev
# - libboost-dev
- libboost1.70-dev
- freeglut3-dev
- python3-pip
homebrew:
packages:
# - ccache
- boost
jobs:
include:
- os: linux
dist: "bionic"
compiler: gcc-9
env:
- MATRIX_EVAL="export CC=gcc-9 && CXX=g++-9 && CONFIG=Debug"
- os: linux
dist: "bionic"
compiler: gcc-9
env:
- MATRIX_EVAL="export CC=gcc-9 && CXX=g++-9 && CONFIG=Release"
- os: osx
osx_image: xcode11.3
compiler: clang
env:
- MATRIX_EVAL="export CONFIG=Debug"
- os: osx
osx_image: xcode11.3
compiler: clang
env:
- MATRIX_EVAL="export CONFIG=Release"
before_install:
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then MINICONDA_OS=Linux; else MINICONDA_OS=MacOSX; fi
# - wget https://repo.anaconda.com/miniconda/Miniconda3-latest-$MINICONDA_OS-x86_64.sh -O miniconda.sh
# - bash miniconda.sh -b -p $HOME/miniconda
# - source "$HOME/miniconda/etc/profile.d/conda.sh"
# - conda env create -f environment.yml
# - conda activate ccd-3.6
- pip3 install --user setuptools
- pip3 install --user -r requirements.txt
install:
- 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:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=$CONFIG ${EXTRA_FLAGS} ..
- make -j2
- if [[ "$CONFIG" == "Release" ]]; then make test; fi
# - ccache --show-stats