-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (44 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
language: python
python:
- "3.6"
# - "3.7"
os:
- linux
# - osx
env:
- CMIP_DATA_ROOT=/home/travis
install:
# Python 3.x is default
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Install Julia
- wget https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.3-linux-x86_64.tar.gz
- tar xfz julia-*-linux-x86_64.tar.gz
- sudo ln -s $(pwd)/julia-*/bin/julia /usr/bin/julia
# Create environment (specifies python version explicitly)
- conda env create -n c3s_magic_wps -f environment.yml
- source activate c3s_magic_wps
# Packages for testing
- conda install pytest flake8
# ESMValTool
# - CURWORK=$PWD
# - cd ..
#- git clone -b v2.0a2 https://github.com/ESMValGroup/ESMValTool.git esmvaltool
#- cd esmvaltool
#- pip install .
#- cd $CURWORK
# Install Emu WPS
- python setup.py install
before_script:
# Start WPS service on port 5000 on 0.0.0.0
- c3s_magic_wps start --daemon --bind-host 0.0.0.0 --port 5000
- sleep 2
script:
- pytest
- flake8