forked from qucontrol/newtonprop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (28 loc) · 843 Bytes
/
.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
# Config file for automatic testing at travis-ci.org
language: python
python:
- 3.6
- 3.5
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda3
- source $HOME/miniconda3/etc/profile.d/conda.sh
- conda activate
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda create -q -n test_env python=$TRAVIS_PYTHON_VERSION
- conda activate test_env
- conda config --append channels conda-forge
- pip install -e .[dev]
- pip freeze
- pip install coveralls
- pip freeze
script:
- pytest --doctest-modules --cov=newtonprop --nbval --sanitize-with docs/nbval_sanitize.cfg src tests docs/*.rst docs/*.ipynb
after_success:
- coveralls