forked from getsentry/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
122 lines (122 loc) · 2.94 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
filter_secrets: false
sudo: false
dist: trusty
language: python
rvm:
- 2.2
cache:
yarn: true
directories:
- node_modules
- $HOME/.cache/pip/wheels
branches:
only:
- master
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- libxmlsec1-dev
chrome: stable
env:
global:
- NODE_ENV=production
- PIP_DISABLE_PIP_VERSION_CHECK=on
- SENTRY_LIGHT_BUILD=1
- SENTRY_SKIP_BACKEND_VALIDATION=1
- TRAVIS_NODE_VERSION=8.9.1
- CXX=g++-4.8
- SOUTH_TESTS_MIGRATE=1
install:
- 'export PATH=$PATH:~/.bin'
- nvm install $TRAVIS_NODE_VERSION
- npm install -g yarn@1.3.2
- make travis-install-$TEST_SUITE
before_script:
- pip freeze
script:
- make travis-lint-$TEST_SUITE
- make travis-test-$TEST_SUITE
after_success:
- codecov -e TEST_SUITE
- npm install -g @zeus-ci/cli
- zeus upload -t "text/xml+xunit" junit.xml
- zeus upload -t "text/xml+coverage" coverage.xml
- zeus upload -t "text/html+pytest" pytest.html
- zeus upload -t "text/plain+pycodestyle" flake8.pycodestyle.log
- zeus upload -t "text/xml+checkstyle" eslint.checkstyle.xml
after_failure:
- dmesg | tail -n 100
- npm install -g @zeus-ci/cli
- zeus upload -t "text/xml+xunit" junit.xml
- zeus upload -t "text/xml+coverage" coverage.xml
- zeus upload -t "text/html+pytest" pytest.html
- zeus upload -t "text/plain+pycodestyle" flake8.pycodestyle.log
- zeus upload -t "text/xml+checkstyle" eslint.checkstyle.xml
# each attribute in the matrix will override the global attribute
matrix:
fast_finish: true
allow_failures:
- python: 2.7
env: TEST_SUITE=django-18
include:
- language: ruby
rvm: 2.2
env: TEST_SUITE=danger
# only the sqlite suite runs riak tests
- python: 2.7
env: TEST_SUITE=sqlite DB=sqlite
services:
- memcached
- riak
- redis-server
- python: 2.7
env: TEST_SUITE=postgres DB=postgres
services:
- memcached
- redis-server
- postgresql
- python: 2.7
env: TEST_SUITE=network DB=postgres
services:
- memcached
- redis-server
- postgresql
- python: 2.7
env: TEST_SUITE=mysql DB=mysql
services:
- memcached
- mysql
- redis-server
- python: 2.7
env: TEST_SUITE=acceptance
services:
- memcached
- redis-server
- postgresql
- python: 2.7
env: TEST_SUITE=js
- python: 2.7
env: TEST_SUITE=cli
services:
- postgresql
- redis-server
- python: 2.7
env: TEST_SUITE=dist
- python: 2.7
env: TEST_SUITE=django-18
services:
- memcached
- redis-server
- postgresql
notifications:
webhooks:
urls:
- https://zeus.ci/hooks/fa079cf6-8e6b-11e7-9155-0a580a28081c/public/provider/travis/webhook
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always