forked from FairRootGroup/FairRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
86 lines (75 loc) · 2.89 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
language: cpp
#cache:
# directories:
# - /opt/fairsoft/nov15p1
env:
- ROOT_VERSION=root5
- ROOT_VERSION=root6
os:
- linux
- osx
compiler:
- gcc
- clang
matrix:
exclude:
- os: osx
compiler: gcc
- os: linux
compiler: clang
# The following gives us Ubuntu 14.04 LTS instead of 12.04 LTS
sudo: required
dist: trusty
before_install:
- if test "$TRAVIS_OS_NAME" = "linux"; then
sudo apt-get update -q;
sudo apt-get install -y cmake cmake-data g++ gcc gfortran build-essential make patch sed
libx11-dev libxft-dev libxext-dev libxpm-dev libxmu-dev libglu1-mesa-dev libgl1-mesa-dev
ncurses-dev libcurl4-openssl-dev curl bzip2 gzip unzip tar subversion git xutils-dev flex
bison lsb-release python-dev libc6-dev-i386 libxml2-dev wget libssl-dev
automake autoconf libtool;
wget http://fairroot.gsi.de/downloads/fairsoft-nov15p1-${ROOT_VERSION}_1.0_amd64.deb;
sudo dpkg -i fairsoft-nov15p1-${ROOT_VERSION}_1.0_amd64.deb;
fi
- if test "$TRAVIS_OS_NAME" = "osx"; then
brew update;
brew tap homebrew/versions;
brew install openssl;
brew uninstall gcc;
brew install homebrew/versions/gcc5;
ln -s /usr/local/bin/gfortran-5 /usr/local/bin/gfortran;
mkdir -p /usr/local/opt/gcc/lib/gcc;
ln -s /usr/local/Cellar/gcc5/5.4.0/lib/gcc/5 /usr/local/opt/gcc/lib/gcc/5;
curl -L -O http://fairroot.gsi.de/downloads/fairsoft_nov15p2_${ROOT_VERSION}-1.0.pkg;
sudo installer -pkg ./fairsoft_nov15p2_${ROOT_VERSION}-1.0.pkg -target /;
fi
install:
before_script:
- $CXX --version
- cmake --version
- if test "$TRAVIS_OS_NAME" = "linux"; then
echo "export LINUX_FLAVOUR=Ubuntu14.04" > Dart.cfg;
echo "export EXTRA_FLAGS=\"-DCMAKE_CXX_COMPILER=g++;-DCMAKE_C_COMPILER=gcc\" " >> Dart.cfg;
echo "export FAIRSOFT_VERSION=nov15p1_\${ROOT_VERSION}" >> Dart.cfg;
fi
- if test "$TRAVIS_OS_NAME" = "osx"; then
echo "export LINUX_FLAVOUR=MacOSX10.9.5" > Dart.cfg;
echo "export EXTRA_FLAGS=\"-DCMAKE_CXX_COMPILER=clang++;-DCMAKE_C_COMPILER=clang\" " >> Dart.cfg;
echo "export FAIRSOFT_VERSION=nov15p2_\${ROOT_VERSION}" >> Dart.cfg;
fi
- echo "export GIT_BRANCH=\${TRAVIS_COMMIT}" >> Dart.cfg
- echo "export SIMPATH=/opt/fairsoft/\${FAIRSOFT_VERSION}" >> Dart.cfg;
- echo "export BUILDDIR=/tmp/fairroot/build_fairroot_\${FAIRSOFT_VERSION}" >> Dart.cfg
- echo "export SOURCEDIR=$PWD" >> Dart.cfg
- echo "export SITE=\"Travis CI\" " >> Dart.cfg
- echo $PWD
- cat Dart.cfg
script:
- ./Dart.sh Experimental Dart.cfg
notifications:
email:
recipients:
on_success: always
on_failure: always