Skip to content

Commit

Permalink
Run Behat tests on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoakes committed Feb 18, 2018
1 parent fe9dea1 commit b77c119
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ services:

script:
- cp docker-compose.yml.dist docker-compose.yml
- sed -i "s/REPLACE_WITH_YOUR_EMAIL/jeyser-crm.travis@example.com/g" docker-compose.yml
- docker-compose build
# check prod env is working
- docker-compose up -d
# - docker-compose run --rm web composer install -o -n
- sleep 10 && docker-compose run --rm web php bin/console cache:clear -e=test --no-warmup
- sleep 10 && docker-compose run --rm web php bin/console cache:clear -e=prod --no-warmup
- docker-compose run --rm web php bin/console doctrine:schema:create
- docker-compose run --rm web php bin/console doctrine:fixtures:load -n
- docker-compose run --rm web php bin/console doctrine:schema:validate --ansi
# - docker-compose run --rm web vendor/bin/behat ./features/ -f pretty
# Run tests on test env
- sleep 10 && docker-compose run --rm web php bin/console cache:clear -e=test --no-warmup
- docker-compose run --rm web vendor/bin/behat ./features/
- docker-compose stop


0 comments on commit b77c119

Please sign in to comment.