forked from lmfit/lmfit-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (49 loc) · 1.48 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Config file for automatic testing at travis-ci.org
language: python
python:
- 2.7
- 3.5
- 3.6
- 3.7
# test with the minium required and latest versions of dependencies
env:
- version=minimum # asteval>=0.9.12 numpy>=1.16 scipy>=1.2 six>=1.11 uncertainties>=3.0.1
- version=latest
# test Python 3.8 development version
matrix:
include:
- python: 3.8-dev
env:
- version=latest
addons:
apt:
packages:
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- libgmp-dev
- libmpfr-dev
- libsuitesparse-dev
- ccache
- swig
- libmpc-dev
allow_failures:
- python: 3.8-dev
fast_finish: true
before_install:
- python -m pip install --upgrade pip setuptools
install:
- if [[ $version == minimum ]]; then pip install asteval==0.9.12 numpy==1.16 scipy==1.2 six==1.11 uncertainties==3.0.1 pytest coverage codecov; fi
- if [[ $version == latest ]]; then pip install -r requirements-dev.txt ; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.8-dev ]]; then pip install https://github.com/newville/asteval/archive/master.zip; fi
- python setup.py install
- pip list
script:
- cd tests
- coverage run --source=lmfit -m pytest
- coverage report -m
# test building the documentation
- if [[ $version == latest && $TRAVIS_PYTHON_VERSION == 3.7 ]]; then cd ../doc ; make ; fi
after_success:
- codecov