storj/.travis.yml
Dennis Coyle 2181932e31 Automatically build, tag and push docker images on merge to master (#103)
* port changes

* build overlay on successful merge to master

* fixes to Makefile

* permissions

* dep ensure

* gopath

* let's try vgo

* remove dep

* maybe alpine is the issue

* tagging go version on build

* stupid vgo

* vgo

* adding tags to push

* quotes

* local linting fixes & stupid travis
2018-06-21 15:36:39 -04:00

31 lines
564 B
YAML

# make use of vm's
sudo: 'required'
# have the docker service set up (we'll
# update it later)
services:
- 'docker'
language: go
go:
- 1.10.x
before_install:
- './.travis/main.sh'
- echo -e "machine api.github.com login coyle password $GITHUB_TOKEN" >> ~/.netrc
- source scripts/travis-deps.sh
install:
- make build-dev-deps
script:
- make test
- make images
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ;
make push-images ;
fi