-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
75 lines (72 loc) · 2.06 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
sudo: true
python:
- 3.6
- 3.7
before_install:
- sudo add-apt-repository ppa:maarten-fonville/protobuf -y
- sudo apt-get update -q
- sudo apt-get install protobuf-compiler
install:
- pip install tox-travis codecov wheel
script:
- tox
env:
- 'COVERAGE_COMMAND=codecov -e TOXENV'
jobs:
include:
- stage: check
script:
- tox -e check
- stage: archive
script:
- python setup.py bdist_wheel
- cd dist
- tar -czf "../rsb-python-${TRAVIS_BRANCH}.tar.gz" rsb_python-*.whl
- cd ..
# includePattern requires a capture group to enable regex mode
- |
cat << EOF > bintray.json
{
"package": {
"name": "rsb-python",
"repo": "travis-artifacts",
"subject": "open-rsx",
"desc": "Travis artifact for branch ${TRAVIS_BRANCH}",
"vcs_url": "https://github.com/open-rsx/rsb-python.git",
"licenses": ["LGPL-3.0"]
},
"version": {
"name": "travis-${TRAVIS_BRANCH}",
"vcs_tag": "${TRAVIS_BRANCH}"
},
"files": [
{
"includePattern": "\\./(rsb-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-python
all_branches: true
- stage: trigger
if: branch = master AND type = push
# erase coverage command, which is not needed here
env:
script:
- bash <(curl https://raw.githubusercontent.com/plume-lib/trigger-travis/master/trigger-travis.sh) open-rsx rsb-integration-test "${TRAVIS_TOKEN}"