Skip to content
Snippets Groups Projects
Commit 54efa940 authored by Ryan Sanford's avatar Ryan Sanford
Browse files

test execution script fail on bootstrap error

parent b9b2f8aa
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Convenience script for unit and integration test execution consumed by
# continous integration workflow (travis)
#
# Must return non-zero on any failure.
set -e
unit_test_path=test/unit_tests/
......@@ -19,13 +24,24 @@ case "$1-$2" in
PYTHONPATH=. ptw $unit_test_path $code_path --poll -- $unit_test_path
;;
integration---ci|integration-)
# Bootstrap and run integration test.
# - always stop and remove docker containers
# - always exit non-zero if either bootstrap or integration tests fail.
# - only run integration tests on bootstrap success
docker-compose \
-f test/docker-compose.yml \
run \
--rm \
bootstrap && \
docker-compose -f test/docker-compose.yml run --rm integration-test
docker-compose \
-f test/docker-compose.yml \
run \
--rm \
integration-test || \
exit_code=1
docker-compose -f test/docker-compose.yml down
exit $exit_code
;;
integration---watch)
echo "Not implemented"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment