FitTrackee/test.sh

28 lines
485 B
Bash
Raw Normal View History

#!/bin/bash
fails=''
inspect() {
if [ $1 -ne 0 ]; then
fails="${fails} $2"
fi
}
2018-04-09 14:24:46 +02:00
docker-compose -f docker-compose-ci.yml run mpwo-api py.test mpwo_api
inspect $? api
2018-04-10 22:11:33 +02:00
docker-compose -f docker-compose-ci.yml run mpwo-api flask db upgrade
2018-04-29 18:56:41 +02:00
docker-compose -f docker-compose-ci.yml run mpwo-api flask init_data
2018-04-10 22:11:33 +02:00
testcafe chrome mpwo_client/e2e
inspect $? e2e
if [ -n "${fails}" ];
then
echo "Tests failed: ${fails}"
exit 1
else
echo "Tests passed!"
exit 0
fi