26 lines
865 B
YAML
26 lines
865 B
YAML
language: go
|
|
|
|
# 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
|
|
|
|
install:
|
|
- go get -d -v ./...
|
|
- go get -d -v github.com/dotcloud/docker # just to be sure
|
|
- DOCKER_PATH="${GOPATH%%:*}/src/github.com/dotcloud/docker"
|
|
- sed -i 's!dotcloud/docker!docker/libcontainer!' "$DOCKER_PATH/hack/make/.validate"
|
|
|
|
script:
|
|
- 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
|