blob: f91065a07eda0a515a9cf23aadc2c12edb902b0e (
plain)
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
|
language: go
services:
- mysql
- mongodb
env:
- MYSQL_TEST="true" MONGO_TEST="true"
go:
- 1.7.4
- 1.8rc1
- tip
matrix:
allow_failures:
- go: tip
before_install:
- go get -v github.com/golang/lint/golint
install:
- go version
before_script:
- mysql < db/seed.sql
- mongo db/seed.js
sudo: false
script:
- go install -v ./cmd/cashier ./cmd/cashierd
- go list ./... |grep -v vendor/ |xargs go test
- gofmt -d $(find -type f -name '*.go' -not -path './vendor/*')
- go list ./... |grep -v vendor/ |xargs go vet
- go list ./... |grep -v vendor/ |xargs -L1 golint -set_exit_status
|