diff --git a/.travis.yml.old b/.travis.yml.old new file mode 100644 index 0000000..6af8574 --- /dev/null +++ b/.travis.yml.old @@ -0,0 +1,59 @@ +sudo: false + +language: php + +cache: + directories: + - $HOME/.composer/cache + - vendor + +env: + global: + - COMPOSER_ARGS="--no-interaction" + +matrix: + fast_finish: true + include: + - php: 7.3 + env: + - DEPS=lowest + - php: 7.3 + env: + - DEPS=latest + - php: 7.4 + env: + - DEPS=lowest + - php: 7.4 + env: + - DEPS=latest + - CS_CHECK=true + - TEST_COVERAGE=true + - php: 8.0 + env: + - DEPS=lowest + - php: 8.0 + env: + - DEPS=latest + + +before_install: + - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi + - travis_retry composer self-update + +install: + - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi + - if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi + - travis_retry composer install $COMPOSER_ARGS + - composer show + +script: + - if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi + - if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi + - if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi + +after_script: + - if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi + +notifications: + irc: "irc.freenode.org#zftalk.modules" + email: false