-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy path.travis.yml
More file actions
53 lines (45 loc) · 1.24 KB
/
.travis.yml
File metadata and controls
53 lines (45 loc) · 1.24 KB
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
dist: focal
language: python
travis:
auto_cancel:
push: true
pull_request: true
notifications:
email: false
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
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