forked from TrueCloudLab/restic
Change CI-Service: Use travis instead of wercker
This commit is contained in:
parent
b17840c6ee
commit
6618afe5c2
2 changed files with 15 additions and 41 deletions
15
.travis.yml
Normal file
15
.travis.yml
Normal 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
|
41
wercker.yml
41
wercker.yml
|
@ -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
|
Loading…
Reference in a new issue