forked from tschoonj/xraylib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
93 lines (86 loc) · 3.06 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
language: generic
matrix:
include:
- os: linux
dist: trusty
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- clang
env: CC='/usr/bin/clang' EXTRA='--disable-fortran2003 --disable-openmp' XRL_PYTHON2='/usr/bin/python' XRL_PYTHON3='/usr/bin/python3'
- os: linux
dist: trusty
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- gfortran-7
env: CC='gcc-7' FC='gfortran-7' XRL_PYTHON2='/usr/bin/python' XRL_PYTHON3='/usr/bin/python3'
- os: osx
env: CC='clang' EXTRA='--disable-fortran2003 --disable-openmp' XRL_PYTHON2='/usr/local/bin/python2' XRL_PYTHON3='/usr/local/bin/python3' CFLAGS='-O0' PHP='homebrew/php/php56'
- os: osx
env: CC='clang' EXTRA='--disable-fortran2003 --disable-openmp' XRL_PYTHON2='/usr/local/bin/python2' XRL_PYTHON3='/usr/local/bin/python3' CFLAGS='-O0' PHP='homebrew/php/php71'
- os: osx
env: CC='gcc-7' FC='gfortran-7' XRL_PYTHON2='/usr/local/bin/python2' XRL_PYTHON3='/usr/local/bin/python3'
before_install:
- |
if [ $TRAVIS_OS_NAME == linux ] ; then
sudo apt-get --yes --force-yes update
sudo apt-get --yes --force-yes install python-all-dev python-numpy cython python3-all-dev python3-numpy fpc gfortran php5-dev lua5.2 liblua5.2-dev
fi
- |
if [ $TRAVIS_OS_NAME == osx ] ; then
brew cask uninstall --force oclint
brew uninstall --force --ignore-dependencies $(brew list) || exit 1
brew update || exit 1
brew cleanup -s || exit 1
rm -rf $(brew --cache) || exit 1
brew install autoconf automake libtool gcc@7 swig ruby python python3 fpc lua perl ${PHP}
pip2 install Cython numpy
pip3 install numpy
fi
- rm -rf $HOME/.phpenv
install:
- |
if [ $TRAVIS_OS_NAME == linux ]; then
wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz || exit 1
tar xfz swig-3.0.12.tar.gz || exit 1
cd swig-3.0.12 || exit 1
./configure || exit 1
make || exit 1
sudo make install || exit 1
cd ..
fi
script:
- autoreconf -fi || exit 1
- ./configure --enable-php --enable-pascal --enable-java --disable-python --disable-python-numpy || exit 1
- make || exit 1
- make check || exit 1
- make distclean || exit 1
- ./configure --disable-all-bindings CFLAGS="-std=c89 -pedantic" || exit 1
- make || exit 1
- make check || exit 1
- make distclean || exit 1
- ./configure --enable-python-numpy --enable-python PYTHON=${XRL_PYTHON2} ${EXTRA} || exit 1
- make || exit 1
- make check || exit 1
- make distclean || exit 1
- ./configure --enable-python-numpy --enable-python PYTHON=${XRL_PYTHON3} ${EXTRA} || exit 1
- make || exit 1
- make check || exit 1
- if [ "$TRAVIS_OS_NAME" == "linux" ] ; then PYTHON=${XRL_PYTHON2} make distcheck || exit 1 ; fi
branches:
only:
- master
notifications:
email:
recipients:
- Tom.Schoonjans@me.com
on_success: never
on_failure: always