mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00

After each push, Travis CI will trigger, and check two things: - make sure that each commit in the push has the Docker certificate of origin - make sure that all .go files changed by this sequence of commits are correctly formatted in the most recent commit Note: there is one edge case; if you do a git force push, we cannot figure out the actual commits in the force push, and we will just run the checks as if upstream master were the base. Pull requests will always be tested correctly, though. Docker-DCO-1.0-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
22 lines
529 B
YAML
22 lines
529 B
YAML
# 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
|
|
|
|
go: 1.2
|
|
|
|
# Disable the normal go build.
|
|
install: true
|
|
|
|
before_script:
|
|
- env | sort
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -qq python-yaml
|
|
- git remote add upstream git://github.com/dotcloud/docker.git
|
|
- git fetch upstream +refs/heads/master:refs/remotes/upstream/master
|
|
|
|
script:
|
|
- hack/travis/dco.py
|
|
- hack/travis/gofmt.py
|
|
|
|
# vim:set sw=2 ts=2:
|