-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
75 lines (72 loc) · 2.07 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: python
dist: xenial
python:
- 3.6
- 3.7
sudo: yes
before_install:
- sudo add-apt-repository ppa:maarten-fonville/protobuf -y
- sudo add-apt-repository http://packages.cor-lab.de/ubuntu/
- wget -q http://packages.cor-lab.de/keys/cor-lab.asc -O- | sudo apt-key add -
- sudo apt-get update -q
- sudo apt-get install spread protobuf-compiler
install:
- pip install tox tox-travis codecov wheel
script:
- tox
after_failure:
- cat .tox/*/log/*.log
env:
- 'COVERAGE_COMMAND=codecov -e TOXENV'
jobs:
include:
- stage: check
script:
- tox -e check
# erase coverage command, which is not needed for deploying
env:
- stage: archive
script:
- python setup.py bdist_wheel
- cd dist
- tar -czf "../rsb-spread-python-${TRAVIS_BRANCH}.tar.gz" rsb_spread_python-*.whl
- cd ..
# includePattern requires a capture group to enable regex mode
- |
cat << EOF > bintray.json
{
"package": {
"name": "rsb-spread-python",
"repo": "travis-artifacts",
"subject": "open-rsx",
"desc": "Travis artifact for branch ${TRAVIS_BRANCH}",
"vcs_url": "https://github.com/open-rsx/rsb-spread-python.git",
"licenses": ["LGPL-3.0"]
},
"version": {
"name": "travis-${TRAVIS_BRANCH}",
"vcs_tag": "${TRAVIS_BRANCH}"
},
"files": [
{
"includePattern": "\\./(rsb-spread-python-.*\\\\.tar.gz)",
"uploadPattern": "\$1",
"matrixParams": {
"override": 1
}
}
],
"publish": true
}
EOF
# erase coverage command, which is not needed for deploying
env:
deploy:
provider: bintray
file: "bintray.json"
user: "languitar"
key: '${BINTRAY_KEY}'
skip_cleanup: true
on:
repo: open-rsx/rsb-spread-python
all_branches: true