forked from PyPSA/PyPSA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (37 loc) · 1.31 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
# Modified from
# https://github.com/calliope-project/calliope/blob/master/.travis.yml
language: python
sudo: false # Use container-based infrastructure
matrix:
include:
- env:
- PYTHON_VERSION="2.7"
- env:
- PYTHON_VERSION="3.6"
before_install:
- if [[ "$PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/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
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
install:
- conda create -q -n pypsa python=$PYTHON_VERSION
- conda env update -q -n pypsa --file=requirements.yml
- conda env update -q -n pypsa --file=requirements_dev.yml
- source activate pypsa
# - conda install -q -c conda-forge python-coveralls # don't install on appveyor
- pip install --no-cache-dir .
# before_script: # configure a headless display to test plot generation
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - sleep 3 # give xvfb some time to start
script: "make test"
# after_success:
# - coveralls