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 1111 global :
1212 - SYMFONY_PHPUNIT_DIR=./bin/.phpunit
1313 - SYMFONY_DEPRECATIONS_HELPER=29
14+ - ACTION="install"
1415
1516matrix :
1617 fast_finish : true
@@ -20,15 +21,37 @@ matrix:
2021 - php : 7.3
2122 # 'php: nightly' is PHP 8.0
2223 - 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"
2330 allow_failures :
2431 - 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"
2538
2639before_install :
2740 - ' [[ "$TRAVIS_PHP_VERSION" == "7.4snapshot" ]] || phpenv config-rm xdebug.ini'
2841 - 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'
2950
3051install :
31- - composer install
52+ - php -r "echo ini_get('memory_limit').PHP_EOL;"
53+ # install or update
54+ - composer $ACTION
3255 - ./bin/phpunit install
3356
3457script :
@@ -45,5 +68,5 @@ script:
4568 - ./bin/console security:check
4669 # this checks that Doctrine's mapping configurations are valid
4770 - ./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