2013-12-04 16:47:37 -05: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
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
2014-01-18 12:37:27 -05:00
- upstream=master;
if [ "$TRAVIS_PULL_REQUEST" != false ]; then
upstream=$TRAVIS_BRANCH;
fi;
git fetch --append --no-tags upstream refs/heads/$upstream:refs/remotes/upstream/$upstream
2014-01-07 14:51:51 -05:00
# sometimes we have upstream master already as origin/master (PRs), but other times we don't, so let's just make sure we have a completely unambiguous way to specify "upstream master" from here out
2014-01-18 12:37:27 -05:00
# but if it's a PR against non-master, we need that upstream branch instead :)
2014-01-18 13:22:05 -05:00
- sudo pip install -r docs/requirements.txt
2013-12-04 16:47:37 -05:00
script :
- hack/travis/dco.py
- hack/travis/gofmt.py
2014-03-14 00:35:31 -04:00
- make -sC docs SPHINXOPTS=-qW docs man
2013-12-04 16:47:37 -05:00
# vim:set sw=2 ts=2: