forked from uqfoundation/multiprocess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (56 loc) · 2.44 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
58
59
60
61
62
63
64
65
66
67
68
69
70
dist: jammy
language: python
matrix:
include:
- python: '3.8'
env:
- COVERAGE="true"
- python: '3.9'
env:
- COVERAGE="true"
- DILL="true"
- python: '3.10'
env:
- python: '3.11'
env:
- python: '3.12-dev'
env:
- PYVERSION="3.12"
- DILL="master"
- python: 'pypy3.8-7.3.9' # is 7.3.11
env:
- PYPY_VERSION="3.8"
- python: 'pypy3.9-7.3.9' # is 7.3.12
env:
- PYPY_VERSION="3.9"
- python: 'pypy3.10-7.3.12'
env:
- PYPY_VERSION="3.10"
allow_failures:
- python: '3.12-dev'
- python: 'pypy3.10-7.3.12' # CI missing
fast_finish: true
cache:
pip: true
before_install:
- set -e # fail on any error
- if [[ $COVERAGE == "true" ]]; then pip install coverage; fi
- if [[ $DILL == "true" ]]; then pip install dill; fi
- if [[ $DILL == "master" ]]; then pip install "https://github.com/uqfoundation/dill/archive/master.tar.gz"; fi
install:
- python -m pip install .
script:
- if [[ $PYVERSION != "3.12" ]]; then PYVERSION=$TRAVIS_PYTHON_VERSION ; fi
- if [[ $PYVERSION == "pypy3.8-7.3.9" ]]; then PYVERSION=py$PYPY_VERSION ; fi
- if [[ $PYVERSION == "pypy3.9-7.3.9" ]]; then PYVERSION=py$PYPY_VERSION ; fi
- if [[ $PYVERSION == "pypy3.10-7.3.12" ]]; then PYVERSION=py$PYPY_VERSION ; fi
- cd py$PYVERSION #XXX: bash script may require tests run from root
- if [[ $COVERAGE == "true" ]]; then cp ../.coveragerc .coveragerc ; fi
- for test in multiprocess/tests/__init__.py; do echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; done
- if [[ $PYVERSION == *"py3"* ]]; then for test in multiprocess/tests/test_multiprocessing_fork.py; do echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; done ; else for test in multiprocess/tests/*.py; do if [[ $test != *"__"* && $test != *"mp_"* ]]; then echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; fi; done ; fi
- cd ..
after_success:
- cd py$PYVERSION
- if [[ $COVERAGE == "true" ]]; then bash <(curl -s https://codecov.io/bash); else echo ''; fi
- if [[ $COVERAGE == "true" ]]; then coverage report; fi
- cd ..