forked from getsentry/snuba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (50 loc) · 1.66 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
dist: xenial
branches:
only:
- master
cache:
pip: true
npm: true
stages: [pre_commit, test]
test_base: &test_base
stage: test
language: node_js
node_js: 10
services:
- docker
before_install:
- docker pull getsentry/snuba:latest || true
- docker build --build-arg PYTHON_VERSION=$PYTHON_VERSION -t getsentry/snuba . --cache-from getsentry/snuba:latest
- docker network create --attachable cloudbuild
script:
- SNUBA_IMAGE=getsentry/snuba docker-compose -f docker-compose.gcb.yml run --rm snuba-test
after_script:
- npm install -g @zeus-ci/cli
- $(npm bin -g)/zeus upload -t "application/x-junit+xml" .artifacts/*.junit.xml
- $(npm bin -g)/zeus upload -t "application/x-cobertura+xml" .artifacts/coverage.xml
matrix:
fast_finish: true
include:
- name: 'pre-commit hooks (includes python formatting + linting)'
stage: pre_commit
language: python
python: 3.8
install:
- make setup-git
script:
# Run pre-commit to lint and format check files that were changed (but not deleted) compared to master.
# XXX: there is a very small chance that it'll expand to exceed Linux's limits
# `getconf ARG_MAX` - max # bytes of args + environ for exec()
- pre-commit run --files $(git diff --diff-filter=d --name-only master)
- <<: *test_base
name: 'Test (3.8)'
env: PYTHON_VERSION=3.8
notifications:
webhooks:
urls:
- https://zeus.ci/hooks/765a963c-0af7-11ea-9a3f-6a1577f6e072/public/provider/travis/webhook
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always