4 # Only test the master branch and SemVer tags.
7 - '/^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/'
12 env: 'SCENARIO=symfony4 HIGHEST_LOWEST="update"'
14 env: 'SCENARIO=symfony4'
16 env: 'HIGHEST_LOWEST="update"'
21 env: 'SCENARIO=symfony2 HIGHEST_LOWEST="update --prefer-lowest'
28 - $HOME/.composer/cache
31 - 'scenarios/install "${SCENARIO}" "${HIGHEST_LOWEST-install}"'
37 - 'travis_retry php vendor/bin/coveralls -v'
39 # Only do post-build actions in one environment, and only if there is a GITHUB token.
40 if [ -z "$DO_POST_BUILD_ACTIONS" ] ; then
43 if [ -z "$GITHUB_TOKEN" ]; then
44 echo "No GITHUB_TOKEN defined; exiting."
48 # Run composer lock update on cron jobs.
49 # See: https://github.com/danielbachhuber/composer-lock-updater
51 if [ "$TRAVIS_EVENT_TYPE" != "cron" ] ; then
52 echo "Not a cron job; exiting."
56 # Only run on one job of a master branch build
58 if [ "master" != "$TRAVIS_BRANCH" ] ; then
59 echo "composer.lock update only runs on the master branch."
63 # Install composer-lock-updater
65 export PATH="$HOME/.composer/vendor/bin:$PATH"
66 composer global require danielbachhuber/composer-lock-updater
68 # Optional: install Sensio Labs security checker to include security advisories in PR comments
71 wget -O $HOME/bin/security-checker.phar http://get.sensiolabs.org/security-checker.phar
72 chmod +x $HOME/bin/security-checker.phar
73 export PATH="$HOME/bin:$PATH"
75 # Install hub for creating GitHub pull requests
77 wget -O hub.tgz https://github.com/github/hub/releases/download/v2.2.9/hub-linux-amd64-2.2.9.tgz
79 export PATH=$PATH:$PWD/hub-linux-amd64-2.2.9/bin/
81 # Run composer-lock-updater