forked from iiasa/message_ix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (37 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
matrix:
include:
- os: osx
language: generic
env: TOXENV=py27
- os: osx
language: generic
env: TOXENV=py36
before_install:
# install gams
- curl -O https://d37drm4t2jghv5.cloudfront.net/distributions/25.1.1/macosx/osx_x64_64_sfx.exe;
- chmod u+x osx_x64_64_sfx.exe
- ./osx_x64_64_sfx.exe > install.out
- export PATH=$PATH:$PWD/gams25.1_osx_x64_64_sfx
# install conda
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- if [ $TOXENV == 'py27'];
then wget http://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh;
else wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -f -p $MINICONDA
- conda update --yes conda
# install ixmp deps
- conda install --yes -c conda-forge ixmp xlsxwriter xlrd
- conda remove --force --yes ixmp
install:
- git clone https://github.com/iiasa/ixmp.git
- cd ixmp && python setup.py install && cd ..
- python setup.py install
script:
- conda install --yes -c conda-forge pytest
- pytest -v tests
- messageix-config --model_path=message_ix/model
- cd doc && pip install -r requirements.txt && make html