-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
81 lines (72 loc) · 1.64 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
language: generic
dist: xenial
sudo: required
os:
- linux
# - osx
#osx_image: xcode11.3
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libblas3
- libblas-dev
env:
matrix:
- GCC=6 GSL=2.6
- GCC=7 GSL=2.6
- GCC=8 GSL=2.6
- GCC=9 GSL=2.6
global:
- LD_LIBRARY_PATH=/usr/local/lib
- LD_RUN_PATH=/usr/local/lib
- PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig
#matrix:
# allow_failures:
# - env: GCC=6 GSL=2.6
# - env: GCC=7 GSL=2.6
# - env: GCC=8 GSL=2.6
# - env: GCC=9 GSL=2.6
before_install:
- |
if [ $TRAVIS_OS_NAME == osx ] ; then
brew uninstall --force $(brew list)
brew cleanup -s
brew update
brew install gcc@${GCC} autoconf automake libtool wget pkg-config
fi
if [ $TRAVIS_OS_NAME == linux ] ; then
sudo apt-get -y install gcc-${GCC} gfortran-${GCC}
fi
install:
- |
export CC=gcc-${GCC}
export FC=gfortran-${GCC}
wget -q https://ftp.gnu.org/gnu/gsl/gsl-${GSL}.tar.gz
tar xfz gsl-${GSL}.tar.gz
cd gsl-${GSL}
./configure || (cat config.log && exit 1)
make || exit 1
if [ $TRAVIS_OS_NAME == osx ]; then make install ; fi
if [ $TRAVIS_OS_NAME == linux ]; then sudo make install ; fi
cd ..
script:
- |
export CC=gcc-${GCC}
export FC=gfortran-${GCC}
autoreconf -fi
./configure CFLAGS="-Wall" FCFLAGS="-Wall" || (cat config.log && exit 1)
make || exit 1
make check || exit 1
make distcheck || exit 1
notifications:
email:
recipients:
on_success: never
on_failure: always
branches:
only:
- master