add Travis CI

This commit is contained in:
zimbatm
2019-02-06 11:57:48 +01:00
parent 6b517528ee
commit 36fa566355
2 changed files with 27 additions and 0 deletions

14
.travis.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# Travis CI specific build script
#
set -euo pipefail
./build
if [[ "$TRAVIS_BRANCH" = master && -z "$TRAVIS_PULL_REQUEST_BRANCH" ]]; then
./docker-login "$CI_REGISTRY" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD"
./push-all "$CI_REGISTRY_PREFIX" "$IMAGE_TAG"
else
echo "=== not pushing on non-master ==="
fi