user dockerhub for image building and travis-ci for testing

This commit is contained in:
Christoph Haas
2020-11-10 12:24:18 +01:00
parent bd3da3d6c7
commit 516561445b
3 changed files with 9 additions and 74 deletions

View File

@@ -1,31 +1,4 @@
# make use of vm's
sudo: 'required'
language: go
# have the docker service set up (we'll
# update it later)
services:
- docker
# prepare the machine before any code
# installation scripts
before_install:
- ./.travis/main.sh
script:
- make docker-build
# only execute the following instructions in
# the case of a success (failing at this point
# won't mark the build as a failure).
# To have `DOCKER_USERNAME` and `DOCKER_PASSWORD`
# filled you need to either use `travis`' cli
# and then `travis set ..` or go to the travis
# page of your repository and then change the
# environment in the settings panel.
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD ;
make docker-push ;
fi
go:
- 1.15.x