-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
52 lines (40 loc) · 1.32 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: php
# Allows use container-based infrastructure
sudo: false
# Cache composer packages so "composer install" is faster
cache:
yarn: true
directories:
- node_modules
- $HOME/.composer/cache/files
- $HOME/symfony-bridge/.phpunit
php:
- 7.2
- 7.3
before_install:
- phpenv config-add travis.php.ini
- phpenv config-rm xdebug.ini
# - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
# - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
# Install composer dependencies,
# Create database, schema and fixtures
install:
# To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
- composer update --prefer-dist --no-interaction
- ./vendor/bin/simple-phpunit install
- php bin/console doctrine:database:create --env=test
- php bin/console doctrine:schema:create --env=test
- php bin/console doctrine:fixtures:load --fixtures="tests/Fixtures" -n --env=test
- yarn install
- yarn encore dev
env:
global:
- PHPUNIT_FLAGS="-v"
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
- STABILITY="dev"
- SYMFONY_DEPRECATIONS_HELPER="weak"
- APP_ENV=test
- LOCALE=en
script:
- composer validate --strict --no-check-lock
- ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS