forked from TUD-RST/pytrajectory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (34 loc) · 1.34 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
language: python
python:
- "2.7"
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda2/bin:$PATH
- export DEPS="sympy=0.7.5 numpy=1.8 scipy=0.13 matplotlib ipython pytest"
- conda update --yes --no-deps conda
- pip install enum34
- pip install ipython==5.4.1
- pip install ipydex
# for some strange reason the following pip-command 1. fails (therefor it is wrapped by echo) but 2. enables the following conda command to succeed
- echo `pip install ruamel_yaml==0.11.14`
- conda install --yes ruamel_yaml
- conda update --yes conda
install:
- conda install --yes -c conda conda-env numpy pytest ipython scipy matplotlib
# - conda create -n testenv --yes $DEPS pip python=$TRAVIS_PYTHON_VERSION
# - source activate testenv
# due to https://github.com/sympy/sympy/issues/12895
# we need to install sympy directly from master
- pip install https://github.com/sympy/sympy/archive/master.zip
- python -c "import sympy; print(sympy.__version__)"
- python setup.py install
# command to run tests
#script: py.test -v
script:
# run all tests
- py.test -v
# for debugging one can execute some specific examples
# - python examples/ex1_InvertedPendulumTranslation.py log
# - python examples/ex3_Aircraft.py log