diff --git a/.travis.yml b/.travis.yml index 295bf82..634378a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,10 @@ -sudo: required +dist: xenial -language: generic +language: minimal env: DOCKSAL_VERSION: develop -services: - - docker - install: # Install Docksal to have a matching versions of Docker on the build host - curl -fsSL https://get.docksal.io | bash diff --git a/Dockerfile b/Dockerfile index 5ea3840..22cacce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.8 +FROM alpine:3.9 RUN set -xe; \ apk add --update --no-cache \ diff --git a/tests/test.bats b/tests/test.bats index a363870..2bedc45 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -29,8 +29,6 @@ _healthcheck () } # Waits for containers to become healthy -# For reasoning why we are not using `depends_on` `condition` see here: -# https://github.com/docksal/docksal/issues/225#issuecomment-306604063 _healthcheck_wait () { # Wait for cli to become ready by watching its health status @@ -40,17 +38,15 @@ _healthcheck_wait () local elapsed=0 until _healthcheck "$container_name"; do - echo "Waiting for $container_name to become ready..." - sleep "$delay"; - - # Give the container 30s to become ready - elapsed=$((elapsed + delay)) - if ((elapsed > timeout)); then - echo-error "$container_name heathcheck failed" \ - "Container did not enter a healthy state within the expected amount of time." \ - "Try ${yellow}fin restart${NC}" - exit 1 - fi + echo "Waiting for $container_name to become ready..." + sleep "$delay"; + + # Give the container 30s to become ready + elapsed=$((elapsed + delay)) + if ((elapsed > timeout)); then + echo "$container_name heathcheck failed" + exit 1 + fi done return 0