mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
Travis CI setup.
This commit is contained in:
16
.travis.yml
Normal file
16
.travis.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.0
|
||||
- 1.1
|
||||
- 1.2
|
||||
|
||||
env:
|
||||
global:
|
||||
- secure: "YSwtFrMqh4oUvdSQTXBXMHHLWeQgyNEL23ChIZwU0nuDGIcQZ65kipu0PzefedtUbK4ieC065YCUi4UDDh6gPotB/Wu1pnYg3dyQ7rFvhaVYAAUEpajAdXZhlx+7+J8a4FZMeC/kqiahxoRgLbthF9019ouIqhGB9zHKI6/yZwc="
|
||||
|
||||
install:
|
||||
- make prepare
|
||||
|
||||
|
||||
script: /home/travis/gopath/bin/goveralls -service travis-ci.org -package="./..." $COVERALLS_TOKEN
|
||||
18
Makefile
Normal file
18
Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
prepare:
|
||||
go get -d -v ./...
|
||||
go get launchpad.net/gocheck
|
||||
go get github.com/axw/gocov/gocov
|
||||
go get github.com/golang/lint/golint
|
||||
go get github.com/matm/gocov-html
|
||||
go get github.com/mattn/goveralls
|
||||
|
||||
coverage:
|
||||
gocov test ./... | gocov-html > coverage.html
|
||||
open coverage.html
|
||||
|
||||
check:
|
||||
go tool vet -all=true .
|
||||
golint .
|
||||
|
||||
test:
|
||||
go test -v ./...
|
||||
Reference in New Issue
Block a user