forked from cluttrdev/pytrajectory
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
39 lines (35 loc) · 1.36 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
language: python
dist: xenial
python:
- "3.7"
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- export DEPS="sympy=1.3 numpy=1.16.2 scipy=1.2.1 matplotlib ipython pytest"
- conda update --yes --no-deps conda
- pip install enum34
- pip install ipython==7.4.0
- 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.15.90`
- 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