-
Notifications
You must be signed in to change notification settings - Fork 99
/
.travis.yml
51 lines (50 loc) · 1.32 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
dist: trusty
sudo: false
language: python
notifications:
email: false
matrix:
include:
- python: 3.5
- python: 3.6
- python: 3.7
dist: xenial
sudo: required
- python: 3.8
dist: xenial
sudo: required
- python: 3.9
dist: xenial
sudo: required
- python: 3.11
dist: xenial
sudo: required
env:
global:
- CFLAGS=-coverage
- LDFLAGS=-coverage -lgcov
- PYXMLSEC_TEST_ITERATIONS=50
addons:
apt:
packages:
- libssl-dev
- libxmlsec1
- libxmlsec1-dev
- libxmlsec1-openssl
- libxslt1-dev
- pkg-config
- lcov
install:
- travis_retry pip install --upgrade pip setuptools wheel
- travis_retry pip install coverage -r requirements-test.txt --upgrade --force-reinstall
- python setup.py bdist_wheel
- pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/
script: coverage run -m pytest -v tests --color=yes
after_success:
- lcov --capture --no-external --directory . --output-file coverage.info
- lcov --list coverage.info
- bash <(curl -s https://codecov.io/bash) -f coverage.info
before_deploy:
- travis_retry pip install Sphinx -r doc/source/requirements.txt
- git apply --verbose --no-index --unsafe-paths --directory=$(python -c "import site; print(site.getsitepackages()[0])") doc/source/sphinx-pr-6916.diff
- sphinx-build -EWanb html doc/source build/sphinx