-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (36 loc) · 979 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
language: python
python:
- "3.6"
- "3.7"
- "3.8"
if: branch =~ /^tr-.*/ OR tag =~ /.*\.tr/
install: pip install -r dev.requirements.txt
script: py.test --cov-report xml --cov-report term --cov=ci_benchmark ./tests
after_script:
- bash <(curl -s https://codecov.io/bash)
- coveralls
- |
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
jobs:
include:
- stage: test
name: Linting
install: pip install -r dev.requirements.txt
script: pylint --load-plugins pylint_quotes ci_benchmark tests
- stage: deploy
name: Upload to PyPI
install: skip
script: skip
after_script: skip
before_deploy:
- sed -i "s|version=\"DEV\"|version=\"${TRAVIS_TAG%%\.tr}\"|g" setup.py
deploy:
provider: pypi
user: "__token__"
password: ${PYPI_TOKEN}
on:
tags: true
stages:
- test
- deploy