-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 1013 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
os: linux
dist: jammy
language: python
python:
- '3.9'
branches:
only:
- master
- "/\\d+\\.\\d+\\.\\d+/"
jobs:
include:
- name: test
install:
- pip install tox
- pip install setuptools --upgrade
service:
- docker
addons:
# For the `SONARQUBE_SCANNER_PARAMS` variable
sonarcloud:
token: ${SONAR_TOKEN}
script:
- tox -e test
- >
docker run --rm
-e SONARQUBE_SCANNER_PARAMS
-e SONAR_TOKEN="${SONAR_TOKEN}"
-v "`pwd`:/usr/src"
sonarsource/sonar-scanner-cli
- name: flake8
install:
- pip install tox
script:
- tox -e flake8
- stage: deploy
if: branch ~= /\d+\.\d+\.\d+/
name: pypi
install: skip
script: skip # skip test scripts
deploy:
provider: pypi
skip_cleanup: true
user: "__token__"
password: ${PYPI_API_TOKEN}
on:
tags: true
distributions: sdist bdist_wheel