forked from GazzolaLab/PyElastica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 1.67 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
language: python
notifications:
email: false
jobs:
include:
# LINUX MACHINE #
- name: " Python 3.6 Linux "
python: 3.6
env:
- NUMBA_DISABLE_JIT=1
- CODECOV_TOKEN="ca23d33f-c704-4cf8-b5ff-dacefe26c494"
- name: " Python 3.7 Linux "
python: 3.7
# macOSx MACHINE #
- name: " Python 3.6.5 macOSx 10.13"
os: osx
osx_image: xcode10.13 # Python 3.6.5 running on macOS 10.13
language: shell # 'language python' is an error on Travis CI macOs
- name: " Python 3.7.3 macOSx 10.14"
os: osx
osx_image: xcode11 # Python 3.7.3 runnning on macOsx 10.14
language: shell # 'language python' is an error on Travis CI macOs
# command to install dependencies
before_install:
- python3 --version
- pip3 install --upgrade pip
- pip3 install -r requirements.txt --use-feature=2020-resolver
- pip3 install -r tests/requirements.txt --use-feature=2020-resolver
- pip3 install -r optional-requirements.txt --use-feature=2020-resolver
# command to run tests
script:
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then python3 -m pytest --cov=elastica --cov-report=xml; else python3 -m pytest; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then black --version && black --check elastica tests; flake8 --version && flake8 elastica tests; fi
#- pip3 install -r optional-requirements.txt; python3 -m pytest;
after_success:
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
codecov;
fi