-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
71 lines (61 loc) · 1.5 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
language: generic
#compiler:
# - gcc
sudo: required
dist: trusty
env:
matrix:
- xMPI=0
- xMPI=1
matrix:
# do notify immediately about it when a job of a build fails.
fast_finish: true
branches:
only:
- master
cache:
apt: true
ccache: true
before_install:
- echo $CXX
- echo $CC
- if [ "$CXX" == "g++" ]; then export CXX=""; fi
- if [ "$CC" == "gcc" ]; then export CC=""; fi
- echo $CXX
- echo $CC
- echo $LANG
- echo $LC_ALL
# update repository status (-qq is more quiet)
- sudo apt-get update -qq
- sudo apt-get install -y coreutils gawk mawk original-awk
# some basic package build tools:
- sudo apt-get install -y devscripts build-essential
# remove any obsolete libraries
- sudo apt-get autoremove
- sudo apt-get install -y python-coverage python-nose python-setuptools
- sudo apt-get install -y python-mpi4py openmpi-bin openmpi-doc libopenmpi-dev python-all-dev
# Install pip and cython
- wget https://bootstrap.pypa.io/get-pip.py
- sudo python get-pip.py
- sudo pip install -U setuptools
- pip install --user cython==0.23.4
install:
- cython --version
before_script:
- chmod +x build.sh
script: ./build.sh
notifications:
email:
recipients:
- r.deepu@fz-juelich.de
on_success: change
on_failure: always
#on_start: false
after_failure:
- cd $TRAVIS_BUILD_DIR/build
- |
for i in $(find reports -type f); do
echo "###########################"
echo "File: $i"
cat $i
done