Skip to content

Commit 440b658

Browse files
committed
Travis-CI: build fgsl too for more testing
1 parent 6b0920e commit 440b658

File tree

1 file changed

+36
-9
lines changed

1 file changed

+36
-9
lines changed

.travis.yml

+36-9
Original file line numberDiff line numberDiff line change
@@ -64,28 +64,55 @@ matrix:
6464
# env: CC='gcc-7' CXX='g++-7' FC='gfortran-7' CFLAGS='-DNRUNS=100000000'
6565
- os: osx
6666
osx_image: xcode6.4
67-
env: CC='clang' CXX='clang++' CFLAGS='-DNRUNS=100000000' BREW='gsl'
67+
env: CC='clang' CXX='clang++' CFLAGS='-DNRUNS=100000000' BREW=''
6868
- os: osx
6969
osx_image: xcode7.3
70-
env: CC='clang' CXX='clang++' CFLAGS='-DNRUNS=100000000' BREW='gsl'
70+
env: CC='clang' CXX='clang++' CFLAGS='-DNRUNS=100000000' BREW=''
7171
- os: osx
7272
osx_image: xcode8.3
73-
env: CC='clang' CXX='clang++' CFLAGS='-DNRUNS=100000000' BREW='gsl'
73+
env: CC='clang' CXX='clang++' CFLAGS='-DNRUNS=100000000' BREW=''
7474
- os: osx
75-
env: CC='gcc-4.8' CXX='g++-4.8' FC='gfortran-4.8' CFLAGS='-DNRUNS=100000000' BREW='gsl [email protected]'
75+
env: CC='gcc-4.8' CXX='g++-4.8' CFLAGS='-DNRUNS=100000000' BREW='[email protected]'
7676
- os: osx
77-
env: CC='gcc-4.9' CXX='g++-4.9' FC='gfortran-4.9' CFLAGS='-DNRUNS=100000000' BREW='gsl [email protected]'
77+
env: CC='gcc-4.9' CXX='g++-4.9' FC='gfortran-4.9' CFLAGS='-DNRUNS=100000000' BREW='[email protected]'
7878
- os: osx
79-
env: CC='gcc-5' CXX='g++-5' FC='gfortran-5' CFLAGS='-DNRUNS=100000000' BREW='gsl gcc@5'
79+
env: CC='gcc-5' CXX='g++-5' FC='gfortran-5' CFLAGS='-DNRUNS=100000000' BREW='gcc@5'
8080
- os: osx
81-
env: CC='gcc-6' CXX='g++-6' FC='gfortran-6' CFLAGS='-DNRUNS=100000000' BREW='gsl gcc@6'
81+
env: CC='gcc-6' CXX='g++-6' FC='gfortran-6' CFLAGS='-DNRUNS=100000000' BREW='gcc@6'
8282
- os: osx
83-
env: CC='gcc-7' CXX='g++-7' FC='gfortran-7' CFLAGS='-DNRUNS=100000000' BREW='gsl gcc@7'
83+
env: CC='gcc-7' CXX='g++-7' FC='gfortran-7' CFLAGS='-DNRUNS=100000000' BREW='gcc@7'
84+
85+
env:
86+
global:
87+
- LD_LIBRARY_PATH=/usr/local/lib
88+
- LD_RUN_PATH=/usr/local/lib
89+
- PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
8490

8591
before_install:
8692
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get --yes --force-yes update && sudo apt-get --yes --force-yes install libgsl0-dev ; fi
87-
- if [ $TRAVIS_OS_NAME == osx ]; then brew uninstall --force --ignore-dependencies gcc gcc49 carthage xctool boost cgal gdal geos maven node postgis postgresql sfcgal subversion libgeotiff liblwgeom libspatialite go libksba mercurial && brew update && brew upgrade && brew install ${BREW} ; fi
93+
- if [ $TRAVIS_OS_NAME == osx ]; then brew uninstall --ignore-dependencies --force $(brew list) && brew update && brew upgrade && brew install ${BREW} autoconf automake libtool gsl pkg-config wget ; fi
8894

95+
install:
96+
- |
97+
if [ -n "${FC+1}" ]; then
98+
if [ $TRAVIS_OS_NAME == osx ] ; then
99+
wget http://www.lrz.de/services/software/mathematik/gsl/fortran/download/fgsl-1.2.0.tar.gz || exit 1
100+
tar xfz fgsl-1.2.0.tar.gz || exit 1
101+
cd fgsl-1.2.0
102+
else
103+
wget http://www.lrz.de/services/software/mathematik/gsl/fortran/download/fgsl-1.0.0.tar.gz || exit 1
104+
tar xfz fgsl-1.0.0.tar.gz || exit 1
105+
cd fgsl-1.0.0
106+
fi
107+
./configure || exit 1
108+
make || exit 1
109+
if [ $TRAVIS_OS_NAME == osx ] ; then
110+
make install || exit 1
111+
else
112+
sudo make install || exit 1
113+
fi
114+
cd ..
115+
fi
89116
90117
script:
91118
- autoreconf -fi || exit 1

0 commit comments

Comments
 (0)