forked from getsentry/sentry-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (56 loc) · 1.59 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
language: python
group: deprecated-2017Q4
sudo: required
services:
- memcached
- postgresql
- redis-server
python:
- '2.7'
cache:
yarn: true
directories:
- node_modules
- $HOME/.cache/pip
- $HOME/.cache/pre-commit
addons:
chrome: stable
env:
global:
- PIP_DISABLE_PIP_VERSION_CHECK=on
- SENTRY_SKIP_BACKEND_VALIDATION=1
- TRAVIS_NODE_VERSION=8.9.1
install:
- 'export PATH=$PATH:~/.bin'
- rvm install 2.2.5
- rvm use 2.2.5
- nvm install $TRAVIS_NODE_VERSION
- npm install -g [email protected]
- make install-tests
- python -m pip install codecov
- pip freeze
script:
- make lint
- py.test --cov . --cov-report="xml:.artifacts/coverage.xml" --junit-xml=".artifacts/junit.xml" --html="artifacts/pytest.html" || exit 1
after_success:
- codecov -e TEST_SUITE
after_failure:
- dmesg | tail -n 100
after_script:
- npm install -g @zeus-ci/cli
- zeus upload -t "text/xml+xunit" .artifacts/*junit.xml
- zeus upload -t "text/xml+coverage" .artifacts/*coverage.xml
- zeus upload -t "text/xml+coverage" .artifacts/coverage/cobertura-coverage.xml
- zeus upload -t "text/html+pytest" .artifacts/*pytest.html
- zeus upload -t "text/plain+pycodestyle" .artifacts/*pycodestyle.log
- zeus upload -t "text/xml+checkstyle" .artifacts/*checkstyle.xml
- zeus upload -t "application/webpack-stats+json" .artifacts/*webpack-stats.json
notifications:
webhooks:
urls:
- https://zeus.ci/hooks/3b18261a-deb8-11e7-867b-0a580a281404/public/provider/travis/webhook
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always