-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
57 lines (49 loc) · 1.2 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
language: python
dist: focal
sudo: false
stages:
- test
- bundle
- name: deploy
if: tag =~ /^v\d+\.\d+\.\d+$/ AND repo = HaaLeo/pylint-file-header
install:
- pip install -r requirements-dev.txt
script:
- pylint pylintfileheader pylintfileheadertest
- pytest --cov pylintfileheader pylintfileheadertest
jobs:
include:
- stage: test
python: 3.8
- stage: test
python: 3.9
- stage: test
python: 3.10
- stage: test
python: 3.11
- stage: test
python: 3.12
after_success:
- codecov
# Bundle Stage
- stage: bundle
python: 3.12
script:
- cp ThirdPartyNotices.txt ./pylintfileheader
- python -m build --sdist --wheel
# Deploy Stage
- stage: deploy
python: 3.12
before_deploy:
- cp ThirdPartyNotices.txt ./pylintfileheader
- python -m build --sdist --wheel
- twine upload dist/* -u __token__ -p ${PYPI_TOKEN}
script: skip
deploy:
provider: releases
file_glob: true
file: "dist/*"
api_key: ${TRAVIS_CD}
skip_cleanup: true
on:
tags: true