Skip to content

Commit

Permalink
run Docker in foreground in BATS testing stage (#918)
Browse files Browse the repository at this point in the history
* run Docker in foreground in BATS testing stage to get to see output in Travis builds
* allow for dev and BATS testing stages to fail while BATS tests still fail

Signed-off-by: Markus Storm <[email protected]>
  • Loading branch information
mstormi authored May 26, 2020
1 parent 71cb38d commit 1e3c416
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ install:

jobs:
fast_finish: true
# allow_failures:
# - env: aarch64
allow_failures:
- stage: Dev & Unit tests
- stage: BATS and shellcheck tests
# - env: aarch64
include:
- stage: Dev & Unit tests
env: aarch64
Expand All @@ -50,8 +52,8 @@ jobs:
arch: arm64
script:
- docker build -t openhabian/bats-openhabian -f Dockerfile.openhabian-aarch64-native .
- docker run --name "bats-inst-tests" -d openhabian/bats-openhabian bash -c '/usr/local/bin/bats -r -f "installation-." .'
- docker run --name "bats-dest-tests" -d openhabian/bats-openhabian bash -c '/usr/local/bin/bats -r -f "destructive-." .'
- docker run --name "bats-inst-tests" -i openhabian/bats-openhabian bash -c '/usr/local/bin/bats -r -f "installation-." .'
- docker run --name "bats-dest-tests" -i openhabian/bats-openhabian bash -c '/usr/local/bin/bats -r -f "destructive-." .'
- shellcheck -x -s bash openhabian-setup.sh functions/*.bash build-image/*.bash build.bash && echo "shellcheck - OK"
- stage: Run unattended openHABian installation
env: amd64
Expand Down

0 comments on commit 1e3c416

Please sign in to comment.