-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.travis.yml
40 lines (31 loc) · 986 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: php
#services:
# - docker
# -
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/symfony-bridge/.phpunit
env:
global:
- PHPUNIT_FLAGS="-v"
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
php:
- 7.2
- 7.3
- 7.4
before_script:
- composer install
- cp .env.dist .env
- curl -sS https://get.symfony.com/cli/installer | bash
- /home/travis/.symfony/bin/symfony version
- /home/travis/.symfony/bin/symfony server:start --no-tls -d
- bin/console doctrine:database:create --no-interaction
- bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration
# - docker-compose pull && docker-compose build && docker-compose up -d
# - docker-compose ps
# - docker-compose exec php-fpm php bin/console doctrine:database:create --no-interaction
# - docker-compose exec php-fpm php bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration
script:
- ./bin/phpunit
- ./vendor/bin/behat