mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 06:46:34 +00:00
Change CI-Service: Use travis instead of wercker
This commit is contained in:
parent
b17840c6ee
commit
6618afe5c2
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 New Issue
Block a user