forked from GenFit/GenFit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (50 loc) · 1.33 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
sudo: required
language: cpp
services: docker
notifications:
email:
on_success: change
on_failure: always
env:
matrix:
- ROOT_VERSION=root_v6.10.00.Linux-ubuntu14-x86_64-gcc4.8.tar.gz
- ROOT_VERSION=root_v6.08.06.Linux-ubuntu14-x86_64-gcc4.8.tar.gz
compiler:
- gcc-4.8
- clang-3.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- clang
before_install:
# install cmake and gtest
- sudo apt-get install cmake libgtest-dev libglu1-mesa
- cd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- sudo cp *.a /usr/lib
- cd -
# install root
- wget https://root.cern.ch/download/${ROOT_VERSION}
- tar xzf ${ROOT_VERSION}
- source root/bin/thisroot.sh
# Install Eigen from source
- wget https://bitbucket.org/eigen/eigen/get/3.3.4.tar.gz -O /tmp/eigen.tar.gz
- mkdir eigen3-src && tar -xzf /tmp/eigen.tar.gz -C eigen3-src --strip 1
- cd eigen3-src && mkdir build && cd build && cmake .. && sudo make install && cd ../..
install:
# create dedicated build folder
- cd .. && mkdir build && cd build
- cmake ../GenFit
- make
- make tests
script:
# generate test geometry
- root -l -b -q ../GenFit/test/makeGeom.C
# run unit tests, must be executed in the build folder
# so ROOT can find its .pcm files
- ./bin/gtests
- ./bin/streamerTest
- ./bin/unitTests