#!/bin/bash

cd "$( dirname "${BASH_SOURCE[0]}" )"

docker-compose build
RESULT=$?

if [[ $RESULT != 0 ]]; then
  exit $RESULT
fi

docker-compose run tests
RESULT=$?

docker-compose down

exit $RESULT

#!/bin/bash

cd "$( dirname "${BASH_SOURCE[0]}" )"

docker-compose build
RESULT=$?

if [[ $RESULT != 0 ]]; then
  exit $RESULT
fi

# If we don't create it here, docker-compose will and it will be owned by root.
mkdir -p screenshots

docker-compose run tests
RESULT=$?

docker-compose down

exit $RESULT

Fix screenshots folder being created with the wrong permissions
Fix screenshots folder being created with the wrong permissions
