forked from patrikhuber/eos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (23 loc) · 1.03 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
sudo: required
dist: trusty
language: cpp
env:
- C_COMPILER=gcc-7 CXX_COMPILER=g++-7
- C_COMPILER=clang-5.0 CXX_COMPILER=clang++-5.0
before_install:
- pyenv global system 3.6 # Workaround for travis-ci/issues/8363
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-5.0 main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update -q
- sudo apt-get install gcc-7 g++-7 -y
- sudo apt-get install clang-5.0 -y
- sudo apt-get install libboost-all-dev libopencv-dev -y
- wget https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.tar.gz
- tar -xvzf cmake-3.8.2-Linux-x86_64.tar.gz
before_script:
- mkdir build
- cd build
- ../cmake-3.8.2-Linux-x86_64/bin/cmake -DCMAKE_C_COMPILER=${C_COMPILER} -DCMAKE_CXX_COMPILER=${CXX_COMPILER} -DEOS_BUILD_EXAMPLES=on -DEOS_BUILD_UTILS=on -DEOS_GENERATE_PYTHON_BINDINGS=on -DPYTHON_EXECUTABLE=`which python3.6` ..
script:
- make VERBOSE=1