forked from FairRootGroup/FairRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (89 loc) · 3.57 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
87
88
89
90
91
92
93
94
95
96
language: cpp
matrix:
include:
- os: osx
compiler: clang
osx_image: xcode7.3
env: FAIRSOFT_VERSION=may16p1_root5
- os: osx
compiler: clang
osx_image: xcode7.3
env: FAIRSOFT_VERSION=may16p1_root6
# - os: osx
# compiler: clang
# osx_image: beta-xcode6.2
# env: FAIRSOFT_VERSION=nov15p7_root5
# - os: osx
# compiler: clang
# osx_image: beta-xcode6.2
# env: FAIRSOFT_VERSION=nov15p7_root6
- os: linux
compiler: gcc
dist: trusty
sudo: required
env: FAIRSOFT_VERSION=may16p1_root5
- os: linux
compiler: gcc
dist: trusty
sudo: required
env: FAIRSOFT_VERSION=may16p1_root6
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-${FAIRSOFT_VERSION}_1.0_amd64.deb;
sudo dpkg -i fairsoft-${FAIRSOFT_VERSION}_1.0_amd64.deb;
fi
- if test "$TRAVIS_OS_NAME" = "osx"; then
env;
brew update;
if test "${_system_version}" = "10.11"; then
brew install gcc;
fi;
if test "${_system_version}" = "10.9"; then
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;
fi;
curl -L -O http://fairroot.gsi.de/downloads/fairsoft_${FAIRSOFT_VERSION}_osx${_system_version}.tar.bz2;
sudo tar -xjf fairsoft_${FAIRSOFT_VERSION}_osx${_system_version}.tar.bz2 -C /;
fi
# 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;
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=\${FAIRSOFT_VERSION}" >> Dart.cfg;
fi
- if test "$TRAVIS_OS_NAME" = "osx"; then
echo "export LINUX_FLAVOUR=MacOSX${_system_version}" > Dart.cfg;
echo "export EXTRA_FLAGS=\"-DCMAKE_CXX_COMPILER=clang++;-DCMAKE_C_COMPILER=clang\" " >> Dart.cfg;
echo "export FAIRSOFT_VERSION=\${FAIRSOFT_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