Skip to content
Permalink
Browse files

travis: use docker staging env to smoke test dockers

The docker-compose based environment is constructed to provide a
sanity check of the produced docker images, hence it is included as
a check when building the docker images

Signed-off-by: Kasper Revsbech <mail@krevsbech.dk>
  • Loading branch information
krevsbech committed Dec 4, 2019
1 parent fe3194b commit 0bb5e6e88edc32e1893b09df2c91e008e20ab916
Showing with 5 additions and 1 deletion.
  1. +5 −1 .travis.yml
@@ -6,7 +6,9 @@ addons:
libow-dev
openssh-server
openssh-client

env:
global:
- CURRENT_UID=$(id -u):$(id -g)
python:
- "3.5"
- "3.6"
@@ -36,6 +38,8 @@ matrix:
- docker
script:
- ./docker/build.sh
- docker-compose -f docker/staging/docker-compose.yml up --exit-code-from client client
- docker-compose -f docker/staging/docker-compose.yml down
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$DOCKER_USERNAME" != "" ] && [ "$DOCKER_TOKEN" != "" ]; then
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin;
docker images;

0 comments on commit 0bb5e6e

Please sign in to comment.
You can’t perform that action at this time.