-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
33 lines (33 loc) · 1.21 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
language: python
matrix:
include:
- language: python
python: 3.5
env: JULIA_VERSION=1.0
- language: python
python: 3.6
env: JULIA_VERSION=1.0
notifications:
email: false
before_script:
- echo ./ci/install-julia.sh "$JULIA_VERSION"
- ./ci/install-julia.sh "$JULIA_VERSION"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libpcre3-dev -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install python-numpy python3-numpy -y; fi
- pip --version
- pip install -U pytest
- pip install -U NetCDF4
- pip install -U julia
- julia -e 'using Pkg; Pkg.add("PyCall")'
# - julia -e 'using Pkg; Pkg.checkout("PyCall"); Pkg.build("PyCall")'
# - julia -e 'using Pkg; Pkg.init(); run(`ln -s $(pwd()) $(Pkg.dir())/PyCall`); Pkg.resolve()'
- julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/gher-ulg/DIVAnd.jl"))'
script:
- which python
- python --version
- pwd
- ls
# - julia -e 'using DIVAnd'
# per default pytest uses /usr/bin/python and not the first python interpreter in PATH
- export PYTHONPATH="$PWD/DIVAnd:$PYTHONPATH"; python $(which pytest)