-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
40 lines (33 loc) · 978 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
language: go
go_import_path: project-root
services:
- mysql
go:
- "1.8"
- "1.9"
- "1.10"
- "tip"
cache:
directories:
- $(npm config get prefix)/lib/node_modules
before_install:
- mysql -e 'CREATE DATABASE webapitest;'
- export GOPATH=$HOME/gopath/src/project-root
- export PATH=$HOME/gopath/src/project-root/bin:$PATH
- cd $GOPATH/src/app/webapi
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- go get github.com/go-swagger/go-swagger/cmd/swagger
- swagger generate spec -o ./swagger.json
- sed -i'' -e 's/example/x\-example/' ./swagger.json
- swagger validate ./swagger.json
- go get github.com/snikch/goodman/cmd/goodman
- npm install -g [email protected]
- go build -o ./cmd/webapi/webapi app/webapi/cmd/webapi
- go build -o ./cmd/hooks/hooks app/webapi/cmd/hooks
- cp testdata/config.json ./config.json
before_script:
- dredd
script:
- $GOPATH/bin/goveralls