forked from alchemyst/Dynamics-and-Control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (33 loc) · 1.05 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
# originally from https://gist.github.com/dan-blanchard/7045057
sudo: false
language: python
python:
# Note: this is currently ignored because the environment contains an explicit python version
# also see the later note on this
- "3.7"
cache:
apt: true
directories:
- $HOME/.local
# Setup anaconda
before_install:
# Install miniconda
# This comes from http://conda.pydata.org/docs/travis.html
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- 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
- conda info -a
# Install packages
install:
# NOTE: we're not actually installing this version of Python here due to the environment.
- conda env create --file environment.yml # python=$TRAVIS_PYTHON_VERSION
- source activate dynamicscontrol
- pip install .
- conda env export # debugging
# Run tests
script:
- pytest tests
- pytest --verbose test_all_notebooks.py