forked from uqfoundation/dill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (36 loc) · 1.2 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
dist: focal
language: python
matrix:
include:
- python: '3.7'
env:
- python: '3.8'
env:
- python: '3.9'
env:
- COVERAGE="true"
- NUMPY="true"
- python: '3.10'
env:
- python: '3.11-dev'
env:
- python: 'pypy3.7-7.3.5' # most recent
dist: bionic
env:
allow_failures:
- python: '3.11-dev'
fast_finish: true
cache:
pip: true
before_install:
- set -e # fail on any error
- if [[ $COVERAGE == "true" ]]; then pip install coverage; fi
- if [[ $NUMPY == "true" ]]; then pip install numpy; fi
install:
- python -m pip install .
script:
- for test in dill/tests/__init__.py; do echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; done
- for test in dill/tests/test_*.py; do echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; done
after_success:
- if [[ $COVERAGE == "true" ]]; then bash <(curl -s https://codecov.io/bash); else echo ''; fi
- if [[ $COVERAGE == "true" ]]; then coverage report; fi