-
Notifications
You must be signed in to change notification settings - Fork 308
/
.travis.yml
32 lines (27 loc) · 753 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
dist: xenial
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
# check if we need to run travis
before_install: ./.travis_check.sh; ret=$?; if [ $ret -eq 123 ]; then travis_terminate 0; elif [
$ret -ne 0 ]; then travis_terminate $ret; fi
# command to install dependencies
install:
- "pip install -r tests/requirements.txt"
- "pip install codecov"
# split the test run according to
# http://blog.travis-ci.com/2012-11-28-speeding-up-your-tests-by-parallelizing-them/
env:
global:
- PYTHONHASHSEED=random # test for ordered dict use
matrix:
- TESTS=tests/
# command to run tests
script: "python -b -m pytest -v --cov=privacyidea --cov-append --durations=100 $TESTS"
after_success:
- codecov