forked from Pyomo/PyomoGallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (67 loc) · 1.88 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: python
matrix:
include:
- python: '2.7'
env: CATEGORY="parallel" EXTRAS="yes"
- python: '3.5'
env: CATEGORY="parallel" EXTRAS="yes"
- python: '3.6'
env: CATEGORY="parallel" EXTRAS="yes"
install:
- sudo apt-get update --quiet
#
# Setup miniconda and activate the testenv environment
#
- if [[ "${TRAVIS_PYTHON_VERSION:0:1}" == "2" ]]; 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 create -f -q -y -n testenv python=${TRAVIS_PYTHON_VERSION}
- source activate testenv
#
# Install supporting packages
#
- if [ "${TRAVIS_PYTHON_VERSION}" == "2.6" ]; then
pip install --quiet ordereddict;
fi
- pip install --quiet coverage
- pip install --quiet codecov
- if [ -n "${YAML}" ]; then
pip install --quiet pyyaml;
fi
- if [ -n "${PYRO}" ]; then
pip install --quiet $PYRO;
fi
- pip install --quiet xlrd
- pip install --quiet openpyxl
- pip install --quiet jupyter_client
- conda install -q -y -c pandas networkx jupyter
#
- if [ -n "${EXTRAS}" ]; then conda install -q -y --channel conda-forge pyomo.extras; fi
- if [ "$TRAVIS_PYTHON_VERSION" != "2.6" -a -n "${EXTRAS}" ]; then
conda install -q -y -c anaconda scipy;
fi
- conda install -q -y --channel conda-forge glpk
- conda install -q -y --channel conda-forge ipopt
#
# Install PyUtilib (master branch)
#
- pip install --quiet git+https://github.com/PyUtilib/pyutilib
#
# Install Pyomo (master branch)
#
- pip install --quiet git+https://github.com/Pyomo/pyomo
#
# Do not install this package
#
- which python
- python --version
script:
- python test_notebooks.py
after_success:
# Combine coverage reports over all subprocesses
- cd $TRAVIS_BUILD_DIR