From 66d505e99264e8e5aae8fb6a854b802ed7ae8a03 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Wed, 9 Aug 2017 14:21:41 +0100 Subject: [PATCH] Improve and add more tests --- .drone.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 39c1fce..320e337 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,11 +16,14 @@ pipeline: environment: - DOCKER_HOST=tcp://docker:2375 commands: - - docker run -tt --rm devbuild /bin/busybox - - docker run -tt --rm devbuild /bin/sh -c 'test -f /lib/libc-*.so' - - export RESULT=$(docker run --name=DEV --rm devbuild /bin/sh -c 'echo This is a test string | md5sum | cut -f1 -d\ ' ) - - echo $RESULT - - test $RESULT = 'b584c39f97dfe71ebceea3fdb860ed6c' + - docker pull adamant/busybox + - docker tag adamant/busybox devbuild + - set -ax + - docker run --rm devbuild /bin/sh -xec 'true' + - docker run --rm devbuild /bin/sh -xec 'test -f /lib/libc-*.so' + - docker run --rm devbuild /bin/sh -xec 'nslookup google.com' + - test "$(docker run --rm devbuild /bin/sh -xec 'date +%Z')" = 'UTC' + - test "$(docker run --rm devbuild /bin/sh -xec 'echo This is a test string | md5sum | cut -f1 -d\ ' | tee /dev/stderr)" = 'b584c39f97dfe71ebceea3fdb860ed6c' publish: image: docker