forked from crossbario/crossbar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
141 lines (115 loc) · 4.21 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
sudo: false
dist: trusty
language: python
python:
- "3.6"
addons:
apt:
update: true
packages:
# needed for pyenchant, needed for sphinx-spellcheck
- libenchant-dev
before_install:
- export PATH=$PATH:$HOME/.local/bin
# build ID (eg, "20180513-28114a1")
- export CROSSBAR_BUILD_ID="$(date --utc "+%Y%m%d")-$(git rev-parse --short ${TRAVIS_COMMIT})"
install:
- pip install -U pip setuptools wheel tox codecov
script:
- tox -c tox.ini -e $TOX_ENV
cache:
directories:
- $HOME/.cache/pip
# https://blog.travis-ci.com/2017-09-12-build-stages-order-and-conditions
stages:
- test
- name: deploy
if: repo = crossbario/crossbar AND branch = master AND type != pull_request
matrix:
fast_finish: true
include:
- python: 3.6
env: TOX_ENV=flake8
- python: 3.6
env: TOX_ENV=sphinx
- python: 3.6
env: TOX_ENV=bandit
- python: 3.6
env: TOX_ENV=coverage
- python: 3.6
env: TOX_ENV=py36-cli
- python: pypy3
env: TOX_ENV=pypy3-cli
- python: 3.6
env: TOX_ENV=py36-examples
- python: pypy3
env: TOX_ENV=pypy3-examples
- python: 3.6
env: TOX_ENV=py36-unpinned-trial
- python: 3.6
env: TOX_ENV=py36-pinned-trial
- python: 3.6
env: TOX_ENV=py36-abtrunk-trial
- python: pypy3
env: TOX_ENV=pypy3-unpinned-trial
- python: pypy3
env: TOX_ENV=pypy3-pinned-trial
- python: pypy3
env: TOX_ENV=pypy3-abtrunk-trial
# https://docs.travis-ci.com/user/build-stages/matrix-expansion/
- stage: deploy
python: "3.6"
if: repo = crossbario/crossbar AND branch = master AND type != pull_request
#on:
# repo: crossbario/crossbar
# branch: master
# # tags: true
skip_cleanup: true
provider: script
script: pwd && ls -la && sh .travis-deploy.sh
# It is important to note that jobs do not share storage, as each job runs in a fresh VM or container.
# If your jobs need to share files (e.g., using build artifacts from the “Test” stage for deployment
# in the subsequent “Deploy” stage), you need to use an external storage mechanism such as
# S3 and a remote scp server.
#
# https://docs.travis-ci.com/user/build-stages/#Data-persistence-between-stages-and-jobs
# we allow failures when not using autobahn trunk, for cases
# where we depend on a new feature in autobahn here in crossbar
allow_failures:
- python: 3.6
env: TOX_ENV=py36-unpinned-trial
- python: 3.6
env: TOX_ENV=py36-pinned-trial
- python: pypy3
env: TOX_ENV=pypy3-unpinned-trial
- python: pypy3
env: TOX_ENV=pypy3-pinned-trial
after_success:
- codecov
# 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/crossbar "https://webhooks.gitter.im/e/7ef..."
- secure: "Wgw066oYjEUmkD2z8uVUcz/yTF8Iz+vQX/XRPobN/Jq8Fxv4i9NYWrAbZ7iEDZxYWhZk95BtBbI0MkhHj49cr1ijxqkyikH6gucZRtQTyBEZHmbMwAHnZEND0PuzFFOZwTRftcqauc/UHOQN8W/BO5bd53tyS4eCGV5QE8FDhhM="
# Slack: post feed on https://crossbario.slack.com/ in channel #ci
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/crossbar "crossbario:FYg..."
- secure: "lH4zZ30xaRyPlI9kixw8r8vnYTypbh4/ogN4xbK4c3UOZilEJqFZG08OpMZJUUfIBJpMQLgCevJmXEiYqDh9gr7crPiFV1yWU7+RXrLRRh/EQniv/zMF5JaNkRr6xcoifcvLg2jx043W+zUKAnJshV8Aikn06OZGPOa1tvFJmC0="