mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-26 15:08:28 +00:00
dc782ec399
The motivation for this is to make it easier to see whether a travis failure is due to linting, unit tests or integration test failures, without having to look in the logs. It also means that each job is independent, so if e.g. the linting fails then the unit tests will still be run.
34 lines
614 B
YAML
34 lines
614 B
YAML
language: go
|
|
go:
|
|
- 1.8
|
|
- 1.9
|
|
|
|
env:
|
|
- TEST_SUITE="lint"
|
|
- TEST_SUITE="unit-test"
|
|
- TEST_SUITE="integ-test"
|
|
|
|
sudo: false
|
|
|
|
# Use trusty for postgres 9.5 support
|
|
dist: trusty
|
|
|
|
addons:
|
|
postgresql: "9.5"
|
|
|
|
services:
|
|
- postgresql
|
|
|
|
install:
|
|
- go get github.com/constabulary/gb/...
|
|
|
|
script:
|
|
- ./scripts/travis-test.sh
|
|
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MGtlZ2FuJTNBbWF0cml4Lm9yZy8lMjFhWmthbkFuV0VkeGNSSVFrV24lM0FtYXRyaXgub3Jn"
|
|
on_success: change # always|never|change
|
|
on_failure: always
|
|
on_start: never
|