File tree Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Original file line number Diff line number Diff line change 11
11
global :
12
12
- SYMFONY_PHPUNIT_DIR=./bin/.phpunit
13
13
- SYMFONY_DEPRECATIONS_HELPER=29
14
+ - ACTION="install"
14
15
15
16
matrix :
16
17
fast_finish : true
@@ -20,15 +21,37 @@ matrix:
20
21
- php : 7.3
21
22
# 'php: nightly' is PHP 8.0
22
23
- php : 7.4snapshot
24
+ - php : 7.3
25
+ env : SYMFONY="4.4.*"
26
+ ACTION="update"
27
+ - php : 7.3
28
+ env : SYMFONY="5.0.*"
29
+ ACTION="update"
23
30
allow_failures :
24
31
- php : 7.4snapshot
32
+ - php : 7.3
33
+ env : SYMFONY="4.4.*"
34
+ ACTION="update"
35
+ - php : 7.3
36
+ env : SYMFONY="5.0.*"
37
+ ACTION="update"
25
38
26
39
before_install :
27
40
- ' [[ "$TRAVIS_PHP_VERSION" == "7.4snapshot" ]] || phpenv config-rm xdebug.ini'
28
41
- composer self-update
42
+ # Set memory to max (memory fail)
43
+ - ' [[ "$ACTION" == "install" ]] || echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini'
44
+ # Install before update because of memory usage
45
+ - ' [[ "$ACTION" == "install" ]] || composer install'
46
+ # Set stability to dev to allow 4.4dev and 5.0dev
47
+ - ' [[ "$ACTION" == "install" ]] || composer config minimum-stability dev'
48
+ # Change version of symfony when need
49
+ - ' [[ "$ACTION" == "install" ]] || composer config extra.symfony.require $SYMFONY'
29
50
30
51
install :
31
- - composer install
52
+ - php -r "echo ini_get('memory_limit').PHP_EOL;"
53
+ # install or update
54
+ - composer $ACTION
32
55
- ./bin/phpunit install
33
56
34
57
script :
@@ -45,5 +68,5 @@ script:
45
68
- ./bin/console security:check
46
69
# this checks that Doctrine's mapping configurations are valid
47
70
- ./bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction
48
- # Fail CI if the repo is in a dirty state after building assets
49
- - yarn install && yarn encore production && git add --all && git diff --staged --exit-code
71
+ # Fail CI if the repo is in a dirty state after building assets (only for current release ie install)
72
+ - if [[ "$ACTION" == "install" ]]; then yarn install && yarn encore production && git add --all && git diff --staged --exit-code; fi
You can’t perform that action at this time.
0 commit comments