Skip to content

Commit c718035

Browse files
committed
Update Travis CI
1 parent f09c3c8 commit c718035

File tree

1 file changed

+36
-39
lines changed

1 file changed

+36
-39
lines changed

.travis.yml

Lines changed: 36 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,48 @@
1-
dist: trusty
2-
sudo: false
1+
dist: focal
32
language: python
3+
44
notifications:
55
email: false
6-
matrix:
7-
include:
8-
- python: 3.5
9-
- python: 3.6
10-
- python: 3.7
11-
dist: xenial
12-
sudo: required
13-
- python: 3.8
14-
dist: xenial
15-
sudo: required
16-
- python: 3.9
17-
dist: xenial
18-
sudo: required
19-
- python: 3.11
20-
dist: xenial
21-
sudo: required
6+
7+
python:
8+
- "3.9"
9+
- "3.10"
10+
- "3.11"
11+
- "3.12"
12+
- "3.13"
13+
2214
env:
2315
global:
24-
- CFLAGS=-coverage
25-
- LDFLAGS=-coverage -lgcov
26-
- PYXMLSEC_TEST_ITERATIONS=50
16+
- CFLAGS=-coverage
17+
- LDFLAGS=-coverage -lgcov
18+
- PYXMLSEC_TEST_ITERATIONS=50
2719

2820
addons:
2921
apt:
3022
packages:
31-
- libssl-dev
32-
- libxmlsec1
33-
- libxmlsec1-dev
34-
- libxmlsec1-openssl
35-
- libxslt1-dev
36-
- pkg-config
37-
- lcov
23+
- libssl-dev
24+
- libxmlsec1
25+
- libxmlsec1-dev
26+
- libxmlsec1-openssl
27+
- libxslt1-dev
28+
- pkg-config
29+
- lcov
30+
3831
install:
39-
- travis_retry pip install --upgrade pip setuptools wheel
40-
- travis_retry pip install coverage -r requirements-test.txt --upgrade --force-reinstall
41-
- python setup.py bdist_wheel
42-
- pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/
43-
script: coverage run -m pytest -v tests --color=yes
32+
- travis_retry pip install --upgrade pip setuptools wheel
33+
- travis_retry pip install coverage -r requirements-test.txt --upgrade --force-reinstall
34+
- python setup.py bdist_wheel
35+
- pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/
36+
37+
script:
38+
- coverage run -m pytest -v tests --color=yes
39+
4440
after_success:
45-
- lcov --capture --no-external --directory . --output-file coverage.info
46-
- lcov --list coverage.info
47-
- bash <(curl -s https://codecov.io/bash) -f coverage.info
41+
- lcov --capture --no-external --directory . --output-file coverage.info
42+
- lcov --list coverage.info
43+
- bash <(curl -s https://codecov.io/bash) -f coverage.info
44+
4845
before_deploy:
49-
- travis_retry pip install Sphinx -r doc/source/requirements.txt
50-
- git apply --verbose --no-index --unsafe-paths --directory=$(python -c "import site; print(site.getsitepackages()[0])") doc/source/sphinx-pr-6916.diff
51-
- sphinx-build -EWanb html doc/source build/sphinx
46+
- travis_retry pip install Sphinx -r doc/source/requirements.txt
47+
- git apply --verbose --no-index --unsafe-paths --directory=$(python -c "import site; print(site.getsitepackages()[0])") doc/source/sphinx-pr-6916.diff
48+
- sphinx-build -EWanb html doc/source build/sphinx

0 commit comments

Comments
 (0)