-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
executable file
·56 lines (43 loc) · 988 Bytes
/
.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
---
# This is a weird way of telling Travis to use the fast container-based test
# runner instead of the slow VM-based runner.
sudo: false
language: go
install:
- go clean --modcache
- go get ./...
- go generate tools.go
- go generate ./...
script:
- ./bin/go-test ./... -v
- ./bin/go-test ./... -count=1 -race
services:
- postgresql
before_script:
- psql -c 'create database travis_ci' -U postgres
env:
global:
- PGUSER=postgres
- PGPASSWORD=postgres
- PGPORT=5432
- PG_DATABASE_DSN="postgres://postgres:postgres@localhost:5432/travis_ci?sslmode=disable"
os:
- linux
# Skip the install step. Don't `go get` dependencies. Only build with the code
# in vendor/
# install: true
# before_install:
# - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
# - dep ensure
go:
- "1.x"
- master
matrix:
allow_failures:
- go: master
branches:
only:
- master
notifications:
email:
- adamluzsi@gmail.com