-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
42 lines (41 loc) · 1.38 KB
/
.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
language: go
go:
- 1.6
- 1.7.x
- master
- tip
services:
- redis-server
- postgresql
env:
- ORM_DRIVER=postgres ORM_SOURCE="user=manga dbname=manga sslmode=disable"
install:
- go get github.com/lib/pq
- go get github.com/garyburd/redigo/redis
- go get github.com/beego/x2j
- go get github.com/beego/goyaml2
- go get github.com/belogik/goes
- go get github.com/siddontang/ledisdb/config
- go get github.com/siddontang/ledisdb/ledis
- go get github.com/cloudflare/golz4
- go get github.com/gogo/protobuf/proto
- go get github.com/Knetic/govaluate
- go get github.com/casbin/casbin
- go get github.com/smartystreets/goconvey/convey
- go get -u honnef.co/go/tools/cmd/gosimple
- go get -u github.com/mdempsky/unconvert
- go get -u github.com/gordonklaus/ineffassign
- go get github.com/mattn/goveralls
- go get -u github.com/golang/lint/golint
script:
- openssl genrsa -out keys/rsakey.pem 2048
- openssl rsa -in keys/rsakey.pem -pubout > keys/rsakey.pem.pub
- go test -covermode=count -coverprofile=profile.cov
- goveralls -coverprofile=profile.cov -service=travis-ci
- gosimple -ignore "$(cat .gosimpleignore)" $(go list ./... | grep -v /vendor/)
- unconvert $(go list ./... | grep -v /vendor/)
- ineffassign .
- find . ! \( -path 'vendor/' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
- golint ./...
addons:
postgresql: "10"