FitTrackee/test.sh
2018-04-09 14:24:46 +02:00

25 lines
345 B
Bash

#!/bin/bash
fails=''
inspect() {
if [ $1 -ne 0 ]; then
fails="${fails} $2"
fi
}
docker-compose -f docker-compose-ci.yml run mpwo-api py.test mpwo_api
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