Skip to content

Commit e8aa06c

Browse files
authored
Add travis build (#9)
1 parent c3ad7cb commit e8aa06c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
sudo: required
2+
language: cpp
3+
dist: trusty
4+
matrix:
5+
include:
6+
- os: osx
7+
osx_image: xcode10
8+
- os: linux
9+
addons:
10+
apt:
11+
sources:
12+
- ubuntu-toolchain-r-test
13+
packages:
14+
- gcc-8
15+
- g++-8
16+
- cmake
17+
before_install:
18+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd ..; wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.gz; fi
19+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar xf boost_1_64_0.tar.gz; cd $TRAVIS_BUILD_DIR; fi
20+
install:
21+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90; fi
22+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd ../boost_1_64_0; ./bootstrap.sh --with-libraries=test,program_options,system,filesystem; fi
23+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ./b2 -j 4 install > /dev/null 2>&1; cd $TRAVIS_BUILD_DIR; fi
24+
before_script:
25+
- git clone https://github.com/AliceO2Group/Common.git; cd Common
26+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sed -i -e 's/<tcl.h>/<tcl\/tcl.h>/g' src/Configuration_tcl_wrap.cxx; fi
27+
- mkdir build; cd build; cmake .. -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/Common_install
28+
- make -j install
29+
- cd $TRAVIS_BUILD_DIR
30+
- mkdir build; cd build
31+
script:
32+
- cmake .. -DCommon_DIR=$TRAVIS_BUILD_DIR/Common_install/lib/cmake/Common
33+
- make -j
34+
- make test
35+
notifications:
36+
email: false

0 commit comments

Comments
 (0)