-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (28 loc) · 756 Bytes
/
Copy path.travis.yml
File metadata and controls
31 lines (28 loc) · 756 Bytes
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
language: go
go:
- 1.4
- tip
env:
global:
- PGUSER=postgres
- PQGOSSLTESTS=1
- USRMNG_DBNAME=usermanager
- USRMNG_USER=postgres
matrix:
- PGVERSION=9.4
addons:
postgresql: "9.4"
script:
- psql yaotest -f ./fixtures/usermanager.sql -U postgres
- psql yaotest -f ./fixtures/usermanager.users.data1.sql -U postgres
-
- $HOME/gopath/bin/goveralls -service=travis-ci
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
before_script:
- go get github.com/lib/pq
- go get github.com/spf13/cobra
- go run yao.go -dyaotest -o$(pwd)/models
- psql -c 'create database yaotest' -U postgres