forked from crossbario/autobahn-python
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
158 lines (131 loc) · 3.99 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
language: python
dist: bionic
sudo: true
addons:
apt:
update: true
packages:
# needed for compression
- libbz2-dev
- libsnappy-dev
# needed for vmprof
- libunwind-dev
before_install:
# AWS tools are installed here eg
- export PATH=$PATH:$HOME/.local/bin
- export AUTOBAHN_BUILD_ID="$(date --utc "+%Y%m%d")-$(git rev-parse --short ${TRAVIS_COMMIT})"
- export AUTOBAHN_VERSION=$(grep -E '^(__version__)' ./autobahn/_version.py | cut -d ' ' -f3 | sed -e 's|[u"'\'']||g')
- export AUTOBAHN_VCS_REF=`git --git-dir="./.git" rev-list -n 1 v${AUTOBAHN_VERSION} --abbrev-commit`
- export BUILD_DATE=`date -u +"%Y-%m-%d"`
install:
- pip install setuptools wheel tox codecov
- pip install --force-reinstall -U "pip<19"
script:
- tox -c tox.ini -e $TOX_ENV
#cache:
# directories:
# - $HOME/.cache/pip
matrix:
fast_finish: true
include:
#
# Flake8
#
- python: "3.8"
env:
- TOX_ENV=flake8
#
# CPython 3.7
#
- python: "3.7"
env:
- TOX_ENV=py37-tw189
- python: "3.7"
env:
- TOX_ENV=py37-tw1910
- python: "3.7"
env:
- TOX_ENV=py37-twtrunk
- python: "3.7"
env:
- TOX_ENV=py37-asyncio
#
# CPython 3.9
#
- python: "3.9"
env:
- TOX_ENV=py39-tw189
- python: "3.9"
env:
- TOX_ENV=py39-tw1910
- python: "3.9"
env:
- TOX_ENV=py39-twtrunk
- python: "3.9"
env:
- TOX_ENV=py39-asyncio
#
# PyPy3
#
- python: "pypy3.6-7.3.1"
env:
- TOX_ENV=pypy3-tw189
- python: "pypy3.6-7.3.1"
env:
- TOX_ENV=pypy3-tw1910
- python: "pypy3.6-7.3.1"
env:
- TOX_ENV=pypy3-twtrunk
- python: "pypy3.6-7.3.1"
env:
- TOX_ENV=pypy3-asyncio
#
# Coverage (run under CPython 3.8)
#
- python: "3.8"
skip_cleanup: true
env: TOX_ENV=coverage
#
# Build wheel and upload to S3
# https://docs.travis-ci.com/user/build-stages/matrix-expansion/
#
- stage: deploy
python: "3.8"
if: repo = crossbario/autobahn-python AND branch = master AND type != pull_request
#on:
# repo: crossbario/autobahn-python
# branch: master
# # tags: true
skip_cleanup: true
provider: script
script: pwd && ls -la && sh .travis-deploy.sh
allow_failures:
- env: TOX_ENV=py39-asyncio
# CI notifications
notifications:
# IRC: chat messages on #crossbar-ci @ freenode
irc:
#on_success: always # options: [always|never|change] default: always
#on_failure: always # options: [always|never|change] default: always
#on_start: always # options: [always|never|change] default: always
channels:
- "irc.freenode.org#crossbar-ci"
use_notice: false
skip_join: false
# Gitter: activity feed on https://gitter.im/crossbario/ci
webhooks:
#on_success: always # options: [always|never|change] default: always
#on_failure: always # options: [always|never|change] default: always
#on_start: always # options: [always|never|change] default: always
urls:
# travis encrypt --org --repo crossbario/autobahn-python "https://webhooks.gitter.im/e/7ef..."
- secure: Ik+ULNHCIZGJ6Mwojd6q5xuLu/M8W91EPh5ePVe0DzF8rjNC8Cn6EXz8+dKYig13nh0szpVO8TW8krlTtGHw9zR+ZtnnXEHz/sJCeJsPxH7ZniP8jCja+WX5FhY0GnG6NgZwNZlYfKYpStrpC2F9p2AtsP0fg5HyKsAlbtAytgs=
# Slack: post feed on https://crossbario.slack.com/messages/CAT527K8D
# https://crossbario.slack.com/services/
slack:
#on_success: always # options: [always|never|change] default: always
#on_failure: always # options: [always|never|change] default: always
#on_start: always # options: [always|never|change] default: always
rooms:
# travis encrypt --org --repo crossbario/autobahn-python "crossbario:FYg..."
- secure: SFGFqyBRM0seIIjHeb/XY6ncdpyxMIEhrd/k3Ni/qq4CFxsCwBJIaatW05Jl6GLk5ykLMeYSSh9TtakIExZ4R068g4VhSH5be0PNjGxnvRkmoF5GmQGJcu87w7a5C4O0J+hmcH5iWBu4IWP0w3rPRiFmMGbCaH7g6qfoPqIW95Q=