2013-12-04 21:47:37 +00:00
# Note: right now we don't use go-specific features of travis.
# Later we might automate "go test" etc. (or do it inside a docker container...?)
language : go
2014-07-29 19:07:59 +00:00
go :
2014-07-07 16:04:23 +00:00
# This should match the version in the Dockerfile.
2014-08-13 06:41:24 +00:00
- 1.3 .1
2014-07-29 19:07:59 +00:00
# Test against older versions too, just for a little extra retrocompat.
- 1.2
2014-07-07 16:04:23 +00:00
# Let us have pretty experimental Docker-based Travis workers.
# (These spin up much faster than the VM-based ones.)
sudo : false
2013-12-04 21:47:37 +00:00
# Disable the normal go build.
2014-07-19 18:04:27 +00:00
install :
- export DOCKER_BUILDTAGS='exclude_graphdriver_btrfs exclude_graphdriver_devicemapper' # btrfs and devicemapper fail to compile thanks to a couple missing headers (which we can't install thanks to "sudo: false")
2014-08-01 17:34:06 +00:00
- export AUTO_GOPATH=1
2014-01-08 05:28:15 +00:00
# some of Docker's unit tests don't work inside Travis (yet!), so we purge those test files for now
- rm -f daemon/graphdriver/btrfs/*_test.go # fails to compile (missing header)
- rm -f daemon/graphdriver/devmapper/*_test.go # fails to compile (missing header)
- rm -f daemon/execdriver/lxc/*_test.go # fails to run (missing "lxc-start")
- rm -f daemon/graphdriver/aufs/*_test.go # fails to run ("backing file system is unsupported for this graph driver")
- rm -f daemon/graphdriver/vfs/*_test.go # fails to run (not root, which these tests assume "/var/tmp/... no owned by uid 0")
- rm -f daemon/networkdriver/bridge/*_test.go # fails to run ("Failed to initialize network driver")
- rm -f graph/*_test.go # fails to run ("mkdir /tmp/docker-test.../vfs/dir/foo/etc/postgres: permission denied")
- rm -f pkg/mount/*_test.go # fails to run ("permission denied")
2013-12-04 21:47:37 +00:00
before_script :
- env | sort
script :
2014-04-04 06:37:50 +00:00
- hack/make.sh validate-dco
- hack/make.sh validate-gofmt
2014-08-01 17:34:06 +00:00
- DOCKER_CLIENTONLY=1 ./hack/make.sh dynbinary
2014-01-08 05:28:15 +00:00
- ./hack/make.sh dynbinary dyntest-unit
2013-12-04 21:47:37 +00:00
# vim:set sw=2 ts=2: