Change CI-Service: Use travis instead of wercker

This commit is contained in:
Alexander Neumann 2015-03-14 13:19:52 +01:00
parent b17840c6ee
commit 6618afe5c2
2 changed files with 15 additions and 41 deletions

15
.travis.yml Normal file
View file

@ -0,0 +1,15 @@
language: Go
go:
- 1.3
- release
install:
- go get -v -t ./...
script:
- gofmt -l *.go */*.go */*/*.go
- test -z "$(gofmt -l *.go */*.go */*/*.go)"
- go build ./...
- go test ./...
- ./testsuite.sh

View file

@ -1,41 +0,0 @@
box: wercker/golang
# Build definition
build:
# The steps that will be executed on build
steps:
# Sets the go workspace and places you package
# at the right place in the workspace tree
- setup-go-workspace
# Test go formatting
- script:
name: gofmt
code: |
gofmt -l *.go */*.go */*/*.go
test -z "$(gofmt -l *.go */*.go */*/*.go)"
# Gets the dependencies
- script:
name: go get
code: |
cd $WERCKER_SOURCE_DIR
go version
go get -v -t ./...
# Build the project
- script:
name: go build
code: |
go build ./...
# Test the project
- script:
name: go test
code: |
go test ./...
# run integration tests
- script:
name: integration test
code: |
./testsuite.sh