-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
95 lines (88 loc) · 3.82 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
language: cpp
matrix:
include:
# - os: osx
# compiler: clang
# osx_image: xcode7.3
# env: FAIRSOFT_VERSION=may16p1_root6
# - os: linux
# compiler: gcc
# dist: trusty
# sudo: required
# env: FAIRSOFT_VERSION=mar17_root6
- os: linux
compiler: gcc
dist: trusty
sudo: required
env: FAIRSOFT_VERSION=dev_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;
export PATH=/opt/fairsoft/${FAIRSOFT_VERSION}/bin:$PATH;
fi
# - if test "$TRAVIS_OS_NAME" = "osx"; then
# env;
# brew update;
# if test "${_system_version}" = "10.11"; then
# brew install --force-bottle gcc@6;
# sudo ln -s $(brew --prefix gcc@6)/bin/gfortran-6 /usr/local/bin/gfortran;
# target=$(dirname $(greadlink -f $(gfortran -print-file-name=libgfortran.dylib)));
# link=/usr/local/opt/gcc/lib/gcc/6;
# sudo mkdir -p $(dirname $link);
# sudo ln -s $target $link;
# 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
- if test "$TRAVIS_PULL_REQUEST" = "false"; then
echo "export GIT_BRANCH=\${TRAVIS_COMMIT}" >> Dart.cfg;
else
echo "export GIT_BRANCH=PR#\${TRAVIS_PULL_REQUEST}_\${TRAVIS_PULL_REQUEST_BRANCH}" >> Dart.cfg;
fi
- 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 "export PATH=$SIMPATH/bin:$PATH" >> Dart.cfg
- echo $PWD
- cat Dart.cfg
script:
- ./Dart.sh Experimental Dart.cfg
notifications:
email:
recipients:
- m.al-turany@gsi.de
- f.uhlig@gsi.de
on_success: always
on_failure: always