forked from PyPSA/PyPSA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (32 loc) · 1.17 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
# Modified from
# https://github.com/calliope-project/calliope/blob/master/.travis.yml
language: bash
sudo: false # Use container-based infrastructure
os:
- windows
- linux
- osx
env:
- PYTHON_VERSION="3.6"
- PYTHON_VERSION="3.7"
# - PYTHON_VERSION="3.8" # until gurobi in conda https://anaconda.org/Gurobi/gurobi/files?version=9.0.0
before_install:
- wget https://raw.githubusercontent.com/trichter/conda4travis/latest/conda4travis.sh -O conda4travis.sh
- source conda4travis.sh
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then echo " - coincbc" >> environment.yaml; fi;
install:
- conda config --add pinned_packages python=$PYTHON_VERSION
- conda create -n pypsa python pip
- conda env update -n pypsa --file=environment.yaml
- conda env update -n pypsa --file=environment_dev.yaml
- conda 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:
- py.test
# after_success:
# - coveralls