forked from sodatencent/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
109 lines (109 loc) · 2.45 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
filter_secrets: false
sudo: false
dist: precise
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
env:
global:
- NODE_ENV=production
- PIP_DISABLE_PIP_VERSION_CHECK=on
- SENTRY_LIGHT_BUILD=1
- SENTRY_SKIP_BACKEND_VALIDATION=1
- TRAVIS_NODE_VERSION=4
- CXX=g++-4.8
before_install:
- bin/update-zeus-job in_progress unknown || echo "failed to report build to Zeus; continuing"
install:
- nvm install $TRAVIS_NODE_VERSION
- npm install -g [email protected]
- 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
- bin/upload-zeus-artifact junit.xml
- bin/upload-zeus-artifact coverage.xml
- bin/update-zeus-job finished passed
after_failure:
- dmesg | tail -n 100
- bin/upload-zeus-artifact junit.xml
- bin/upload-zeus-artifact coverage.xml
- bin/update-zeus-job finished failed
# 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 cassandra/riak tests
- python: 2.7
env: TEST_SUITE=sqlite DB=sqlite
services:
- memcached
- riak
- redis-server
- cassandra
before_script:
- make travis-setup-cassandra
- pip freeze
- 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
- python: 2.7
env: TEST_SUITE=dist
- python: 2.7
env: TEST_SUITE=django-18
services:
- memcached
- redis-server
- postgresql