FitTrackee/test.sh
SamR1 e82dcad394 test.sh update
test.sh update

test.sh update

test.sh update

test.sh update

test.sh update

test.sh update
2018-01-13 14:36:07 +01:00

25 lines
334 B
Bash

#!/bin/bash
fails=''
inspect() {
if [ $1 -ne 0 ]; then
fails="${fails} $2"
fi
}
docker-compose -f docker-compose-ci.yml run api flask test
inspect $? api
testcafe chrome mpwo_client/e2e
inspect $? e2e
if [ -n "${fails}" ];
then
echo "Tests failed: ${fails}"
exit 1
else
echo "Tests passed!"
exit 0
fi