|
@@ -99,23 +99,6 @@ script:
|
|
|
after_failure:
|
|
|
- dmesg | tail -n 100
|
|
|
|
|
|
-after_script:
|
|
|
- - |
|
|
|
- coverage_files=$(ls .artifacts/*coverage.xml || true)
|
|
|
- if [[ -n "$coverage_files" || -f .artifacts/coverage/cobertura-coverage.xml ]]; then
|
|
|
- pip install -U codecov
|
|
|
- codecov -e TEST_SUITE
|
|
|
- fi
|
|
|
- - *install_volta
|
|
|
- - volta install @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
|
|
|
-
|
|
|
base_postgres: &postgres_default
|
|
|
python: 2.7
|
|
|
services:
|
|
@@ -186,103 +169,9 @@ matrix:
|
|
|
# `getconf ARG_MAX` - max # bytes of args + environ for exec()
|
|
|
- pre-commit run --files $(git diff --diff-filter=d --name-only master)
|
|
|
|
|
|
- - <<: *postgres_default
|
|
|
- name: 'Backend with migrations [Postgres] (1/2)'
|
|
|
- env: TEST_SUITE=postgres DB=postgres TOTAL_TEST_GROUPS=2 TEST_GROUP=0 MIGRATIONS_TEST_MIGRATE=1
|
|
|
- - <<: *postgres_default
|
|
|
- name: 'Backend with migrations [Postgres] (2/2)'
|
|
|
- env: TEST_SUITE=postgres DB=postgres TOTAL_TEST_GROUPS=2 TEST_GROUP=1 MIGRATIONS_TEST_MIGRATE=1
|
|
|
-
|
|
|
- - <<: *acceptance_default
|
|
|
- name: 'Acceptance (1/3)'
|
|
|
- env: TEST_SUITE=acceptance USE_SNUBA=1 TOTAL_TEST_GROUPS=3 TEST_GROUP=0
|
|
|
- - <<: *acceptance_default
|
|
|
- name: 'Acceptance (2/3)'
|
|
|
- env: TEST_SUITE=acceptance USE_SNUBA=1 TOTAL_TEST_GROUPS=3 TEST_GROUP=1
|
|
|
- - <<: *acceptance_default
|
|
|
- name: 'Acceptance (3/3)'
|
|
|
- env: TEST_SUITE=acceptance USE_SNUBA=1 TOTAL_TEST_GROUPS=3 TEST_GROUP=2
|
|
|
-
|
|
|
- - <<: *acceptance_default
|
|
|
- name: 'Plugins'
|
|
|
- env: TEST_SUITE=plugins DB=postgres
|
|
|
-
|
|
|
- - python: 2.7
|
|
|
- name: 'Frontend [test]'
|
|
|
- env: TEST_SUITE=js
|
|
|
- before_install:
|
|
|
- - *install_volta
|
|
|
- install:
|
|
|
- - *install_node_dependencies
|
|
|
-
|
|
|
- - python: 2.7
|
|
|
- name: 'Frontend [build]'
|
|
|
- env: TEST_SUITE=js-build
|
|
|
- before_install:
|
|
|
- - *install_volta
|
|
|
- install:
|
|
|
- - *install_node_dependencies
|
|
|
-
|
|
|
- - python: 2.7
|
|
|
- name: 'Command Line'
|
|
|
- env: TEST_SUITE=cli
|
|
|
- services:
|
|
|
- - postgresql
|
|
|
- - redis-server
|
|
|
- install:
|
|
|
- - python setup.py install_egg_info
|
|
|
- - pip install -U -e ".[dev]"
|
|
|
- - sentry init
|
|
|
- before_script:
|
|
|
- - psql -c 'create database sentry;' -U postgres
|
|
|
-
|
|
|
- - <<: *postgres_default
|
|
|
- name: 'Symbolicator Integration'
|
|
|
- env: TEST_SUITE=symbolicator
|
|
|
- before_install:
|
|
|
- - *base_install
|
|
|
- - *start_snuba
|
|
|
- - docker run -d -v $PWD/config/symbolicator/:/etc/symbolicator --network host --name symbolicator us.gcr.io/sentryio/symbolicator:nightly run -c /etc/symbolicator/config.yml
|
|
|
- - docker ps -a
|
|
|
-
|
|
|
- - <<: *postgres_default
|
|
|
- name: 'Sentry-Relay integration tests'
|
|
|
- env: TEST_SUITE=relay-integration DB=postgres
|
|
|
- services:
|
|
|
- - docker
|
|
|
- - memcached
|
|
|
- - redis-server
|
|
|
- - postgresql
|
|
|
- before_install:
|
|
|
- - *base_install
|
|
|
- - *start_snuba
|
|
|
- - docker pull us.gcr.io/sentryio/relay:nightly # pull relay we'll run and kill it for each test
|
|
|
- - docker ps -a
|
|
|
-
|
|
|
- - python: 2.7
|
|
|
- name: 'Snuba Integration with migrations'
|
|
|
- env: TEST_SUITE=snuba USE_SNUBA=1 MIGRATIONS_TEST_MIGRATE=1
|
|
|
- services:
|
|
|
- - docker
|
|
|
- - memcached
|
|
|
- - redis-server
|
|
|
- - postgresql
|
|
|
- before_install:
|
|
|
- - *base_install
|
|
|
- - *start_snuba
|
|
|
- - docker ps -a
|
|
|
- install:
|
|
|
- - python setup.py install_egg_info
|
|
|
- - pip install -U -e ".[dev]"
|
|
|
- - sentry init
|
|
|
- before_script:
|
|
|
- - psql -c 'create database sentry;' -U postgres
|
|
|
-
|
|
|
notifications:
|
|
|
webhooks:
|
|
|
urls:
|
|
|
- - https://zeus.ci/hooks/fa079cf6-8e6b-11e7-9155-0a580a28081c/public/provider/travis/webhook
|
|
|
-
|
|
|
# This is to capture travis metrics
|
|
|
# Repo for this webhook is https://github.com/getsentry/sentry-development-metrics
|
|
|
# Hosted on GCP
|