forked from permamodel/GIPL-BMI-Fortran
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (38 loc) · 995 Bytes
/
.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
language: generic
os:
- osx
- linux
env:
matrix:
- TRAVIS_PYTHON_VERSION="2.7"
- TRAVIS_PYTHON_VERSION="3.*"
global:
- CONDA_PREFIX=$HOME/conda
- MINICONDA_URL_BASE="https://repo.continuum.io/miniconda/Miniconda3-latest"
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
OS="MacOSX-x86_64"
else
OS="Linux-x86_64"
fi
- curl $MINICONDA_URL_BASE-$OS.sh > $HOME/miniconda.sh
- bash $HOME/miniconda.sh -b -p $CONDA_PREFIX
- export PATH="$CONDA_PREFIX/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda install python=$TRAVIS_PYTHON_VERSION
- conda install gfortran_$TRAVIS_OS_NAME-64 cmake
- source activate root
install:
- mkdir _build && cd _build
- cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
- make
- make install
before_script:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
source ../scripts/update_rpaths.sh
fi
script:
- ctest --output-on-failure