-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
60 lines (50 loc) · 1.28 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
language: minimal
sudo: false
branches:
except:
- /.*gh-pages.*/
notifications:
email:
recipients:
on_failure: always
on_success: change
matrix:
include:
- env:
- CONDA_ENV=py27
- env:
- CONDA_ENV=py36
before_install:
- |
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
else
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- hash -r
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
# Do actual package installations
# - conda update -q conda
- conda info -a
install:
- conda env create -n test_env --file ci/requirements-$CONDA_ENV.yml
- source activate test_env
- conda info --envs
- conda list
- export CC=$GCC
- export FC=$GFORTRAN
- export F77=$GFORTRAN
- export F90=$GFORTRAN
- $CC --version
- $FC --version
- python -c 'import sys ; print(sys.version)'
- unset LDFLAGS
- pip install --no-deps -e .
script:
- which python
- python --version
- python -OO -c "import Inelastica"
- Inelastica --help