2014-06-13 01:42:31 +08:00
|
|
|
language: go
|
|
|
|
|
2014-07-01 06:47:02 +08:00
|
|
|
# let us have pretty experimental Docker-based Travis workers
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
env:
|
|
|
|
- TRAVIS_GLOBAL_WTF=1
|
|
|
|
- GOOS=linux GOARCH=amd64
|
|
|
|
- GOOS=linux GOARCH=386
|
|
|
|
- GOOS=linux GOARCH=arm
|
|
|
|
- GOOS=darwin GOARCH=amd64
|
|
|
|
- GOOS=darwin GOARCH=386
|
|
|
|
- GOOS=freebsd GOARCH=amd64
|
|
|
|
|
2014-06-13 01:42:31 +08:00
|
|
|
install:
|
2014-07-01 06:47:02 +08:00
|
|
|
- go get -d -v ./...
|
|
|
|
- go get -d -v github.com/dotcloud/docker # just to be sure
|
2014-06-13 02:42:06 +08:00
|
|
|
- DOCKER_PATH="${GOPATH%%:*}/src/github.com/dotcloud/docker"
|
|
|
|
- sed -i 's!dotcloud/docker!docker/libcontainer!' "$DOCKER_PATH/hack/make/.validate"
|
2014-06-13 01:42:31 +08:00
|
|
|
|
|
|
|
script:
|
2014-07-01 06:47:02 +08:00
|
|
|
- if [ "$TRAVIS_GLOBAL_WTF" ]; then bash "$DOCKER_PATH/hack/make/validate-dco"; fi
|
|
|
|
- if [ "$TRAVIS_GLOBAL_WTF" ]; then bash "$DOCKER_PATH/hack/make/validate-gofmt"; fi
|
|
|
|
- if [ -z "$TRAVIS_GLOBAL_WTF" ]; then go build -v; fi
|
|
|
|
- if [ -z "$TRAVIS_GLOBAL_WTF" ]; then go test -v; fi
|