forked from lmfit/asteval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (31 loc) · 990 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
31
32
33
34
35
36
37
38
# Config file for automatic testing at travis-ci.org
language: python
sudo: false
python:
- 3.5
- 3.6
- 3.7
- 3.8
env:
- version=without_numpy
- version=with_numpy
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda-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:
- conda create -q -n test_env python=$TRAVIS_PYTHON_VERSION pytest coverage
- source activate test_env
- if [[ $version == with_numpy ]]; then conda install numpy ; fi
- python setup.py install
- pip install codecov
script:
- cd tests
- pytest
- if [[ $version == with_numpy ]]; then coverage run --source=asteval test_asteval.py && coverage report -m ; fi
after_success:
- if [[ $version == with_numpy ]]; then codecov ; fi