2017-02-10 10:54:07 +00:00
|
|
|
language: go
|
|
|
|
go:
|
2017-05-18 10:38:09 +00:00
|
|
|
- 1.8
|
2017-03-01 14:55:27 +00:00
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
# Use trusty for postgres 9.5 support
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
addons:
|
2017-06-08 13:40:51 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- openssl
|
2017-03-01 14:55:27 +00:00
|
|
|
postgresql: "9.5"
|
|
|
|
|
|
|
|
services:
|
|
|
|
- postgresql
|
|
|
|
|
2017-02-10 10:54:07 +00:00
|
|
|
install:
|
|
|
|
- go get github.com/constabulary/gb/...
|
|
|
|
|
2017-06-08 13:40:51 +00:00
|
|
|
# Generate a self-signed X.509 certificate for TLS.
|
|
|
|
before_script:
|
|
|
|
- openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.crt -days 365 -nodes -subj /CN=localhost
|
|
|
|
|
2017-02-20 17:13:59 +00:00
|
|
|
script:
|
2017-05-30 16:44:31 +00:00
|
|
|
- ./travis-install-kafka.sh
|
2017-03-01 14:55:27 +00:00
|
|
|
- ./travis-test.sh
|
2017-02-10 10:54:07 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MGtlZ2FuJTNBbWF0cml4Lm9yZy8lMjFhWmthbkFuV0VkeGNSSVFrV24lM0FtYXRyaXgub3Jn"
|
|
|
|
on_success: change # always|never|change
|
|
|
|
on_failure: always
|
|
|
|
on_start: never
|