forked from n7consulting/Incipio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
21 lines (17 loc) · 842 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
sudo: required
services:
- docker
script:
- cp docker-compose.yml.dist docker-compose.yml
- sed -i "s/REPLACE_WITH_YOUR_EMAIL/[email protected]/g" docker-compose.yml
- docker-compose build
# check prod env is working
- docker-compose up -d
- 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
# 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 php -d memory_limit=1024M vendor/bin/behat ./features/
- docker-compose stop