forked from HomerReid/scuff-em
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (30 loc) · 1.19 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
language: cpp
addons:
apt:
packages:
- gfortran
- libhdf5-serial-dev
- liblapack-dev
- python-numpy
- swig
matrix:
include:
- os: linux
# 20180712 it seems to be very difficult to get anything to compile in the
# travis OSX environment. I'm giving up after a half-day of trying.
# - os: osx
# osx_image: xcode9.3
# env: FC=gfortran F77=gfortran CPPFLAGS=-I/usr/local/opt/openblas/include LDFLAGS=-L/usr/local/opt/openblas/lib BLAS_LIBS=-lopenblas
#before_script:
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated openblas || brew upgrade openblas; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated gcc || brew upgrade gcc; fi
script:
- ./autogen.sh --enable-shared --with-python --prefix=${HOME}/local
- make install
- PATH=${PATH}:${HOME}/local/bin:${HOME}/local/share/scuff-em/tests make check
- find ${HOME}/local/lib
- PYTHONPATH=${HOME}/local/lib/python2.7/site-packages python -c 'import scuff'
after_script:
- cat ${TRAVIS_BUILD_DIR}/config.log
- for FILE in `find ${TRAVIS_BUILD_DIR} -name test-suite.log`; do printf "\n**${FILE}:\n"; cat ${FILE}; done