forked from modflowpy/pymake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (53 loc) · 1.26 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
language: python
compiler:
- gcc
sudo: false #true
# 2.6 does not work at the moment, so it is commented out.
python:
#- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "3.5-dev" # 3.5 development branch
- "nightly" # currently points to 3.6-dev
cache:
apt: true
pip: true
directories:
- $HOME/.cache/pip
- $HOME/.local
addons:
apt:
sources:
- kalakris-cmake
- ubuntu-toolchain-r-test
packages:
- gfortran-5
- binutils
- cmake
- graphviz
- python-pip
#before_install:
# #- sudo ln -fs /usr/bin/gfortran-5 /usr/bin/gfortran && gfortran --version
# #- export PATH=".:$PATH"
# - gcc -v
# - gfortran -v
# command to install dependencies
install:
- |
if [[ ! -d "$HOME/.local/bin" ]]; then
mkdir "$HOME/.local/bin"
fi
- export PATH="$HOME/.local/bin:$PATH"
- export FC=/usr/bin/gfortran-5
- ln -fs /usr/bin/gfortran-5 "$HOME/.local/bin/gfortran" && gfortran --version
- ls -l /usr/bin/gfortran-5
- pip install -r requirements.travis.txt
- pip install https://github.com/modflowpy/flopy/zipball/develop
# command to run tests
script:
- export PYTHONPATH=$PYTHONPATH:.
#- nosetests -v ./autotest/t003_test.py
- nosetests -v -w ./autotest