forked from IAMconsortium/pyam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (39 loc) · 1.27 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: sh
matrix:
include:
- os: linux
env: PYENV=py36
- os: linux
env: PYENV=py37
- os: osx
env: PYENV=py36
- os: osx
env: PYENV=py37
# Observed on 10-Feb-19, choclatey builds for miniconda3 break
# see: https://github.com/conda/conda/issues/6064
# It is not clear how/when this can be fixed, so turn this back off for now
# - os: windows
# env: PYENV=py37
# there is no maintained miniconda2 package for chocolatey
# - os: windows
# env: PYENV=py27
before_install:
- source ./ci/env.sh
- bash ./ci/travis-install-miniconda.sh
- conda create -n testing python=$PYVERSION --yes
- source activate testing
- make -B virtual-environment
install:
- make install
script:
- conda list
- python -c "import os; print(os.environ['PYVERSION'])"
- python -c "import sys; print(sys.version)"
- python -c "import os, sys; assert os.environ['PYVERSION'] == '.'.join([sys.version[0], sys.version[2]])"
- make test
# only test docs once to make sure everything works on most recent python
- cd doc
- if [[ "${PYENV}" == "py37" && "${TRAVIS_OS_NAME}" != 'windows' ]]; then conda install --yes kealib==1.4.7; make html; fi
- cd ..
after_success:
- cd tests && coveralls