103 lines
2.4 KiB
YAML
103 lines
2.4 KiB
YAML
---
|
|
language: python
|
|
python: 2.7
|
|
|
|
sudo: required
|
|
|
|
services:
|
|
- docker
|
|
|
|
install: true
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
# Stop default database instances here to avoid port conflicts.
|
|
before_script:
|
|
- sudo service mysql stop
|
|
- sudo service postgresql stop
|
|
|
|
# Clean the cache if any step fails.
|
|
before_cache:
|
|
- scripts/ci fail-clean
|
|
|
|
cache:
|
|
timeout: 1000
|
|
directories:
|
|
- $HOME/docker
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
- clean
|
|
|
|
# We should label the steps if Travis ever supports it:
|
|
# https://github.com/travis-ci/travis-ci/issues/5898
|
|
jobs:
|
|
include:
|
|
- stage: build
|
|
name: Build
|
|
script: scripts/ci build
|
|
|
|
# To further shard, change the script to shard_X_of_XS and add new steps
|
|
- stage: test
|
|
name: Unit tests (shard 1)
|
|
script: scripts/ci unit shard_1_of_2
|
|
- stage: test
|
|
name: Unit tests (shard 2)
|
|
script: scripts/ci unit shard_2_of_2
|
|
|
|
- stage: test
|
|
name: Registry tests (shard 1)
|
|
script: scripts/ci registry shard_1_of_5
|
|
- stage: test
|
|
name: Registry tests (shard 2)
|
|
script: scripts/ci registry shard_2_of_5
|
|
- stage: test
|
|
name: Registry tests (shard 3)
|
|
script: scripts/ci registry shard_3_of_5
|
|
- stage: test
|
|
name: Registry tests (shard 4)
|
|
script: scripts/ci registry shard_4_of_5
|
|
- stage: test
|
|
name: Registry tests (shard 5)
|
|
script: scripts/ci registry shard_5_of_5
|
|
|
|
- stage: test
|
|
name: Legacy registry tests
|
|
script: scripts/ci registry_old
|
|
|
|
- stage: test
|
|
name: Custom TLS certs test
|
|
script: scripts/ci certs_test
|
|
|
|
- stage: test
|
|
name: Gunicorn worker test
|
|
script: scripts/ci gunicorn_test
|
|
|
|
- stage: test
|
|
name: MySQL unit tests (shard 1)
|
|
script: scripts/ci mysql shard_1_of_2
|
|
- stage: test
|
|
name: MySQL unit tests (shard 2)
|
|
script: scripts/ci mysql shard_2_of_2
|
|
|
|
- stage: test
|
|
name: Postgres unit tests (shard 1)
|
|
script: scripts/ci postgres shard_1_of_2
|
|
- stage: test
|
|
name: Postgres unit tests (shard 2)
|
|
script: scripts/ci postgres shard_2_of_2
|
|
|
|
- stage: clean
|
|
name: Cleanup
|
|
script: scripts/ci clean
|
|
|
|
notifications:
|
|
slack:
|
|
rooms:
|
|
- secure: "fBR3YMXaOkoX2Iz7oSJVAw9zrcDoqwadiMEWTWhx7Ic0zoM8IieD2EWIcDHAoGpqf3ixHkc1v/iLBpbWHgvK7TkrSrGEbFyEmu/uomuHU8oGTiazWCbMWg9T2mhWYFyVaKtt8bzMbFo8k72kYK/NWV8bR4W/Qe/opkH2GGzfhZA="
|
|
on_success: change
|
|
on_failure: always
|
|
on_pull_requests: false
|