forked from GenFit/GenFit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (43 loc) · 964 Bytes
/
.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
sudo: required
language: cpp
services: docker
notifications:
email:
on_success: change
on_failure: always
env:
matrix:
- ROOT_VERSION=root_v6.08.00.Linux-ubuntu14-x86_64-gcc4.8.tar.gz
- ROOT_VERSION=root_v5.34.36.Linux-ubuntu14-x86_64-gcc4.8.tar.gz
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- clang
before_install:
# install cmake and gtest
- sudo apt-get install cmake libgtest-dev
- 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 xvzf ${ROOT_VERSION}
- source root/bin/thisroot.sh
install:
# create dedicated build folder
- cd .. && mkdir build && cd build
- cmake ../GenFit
- make VERBOSE=1
- make tests
script:
# generate test geometry
- cd bin
- root -l -b -q ../../GenFit/test/makeGeom.C
# run unit tests
- ./gtests
- ./unitTests