From 21335ab158165d314eb78ba1bd3b22b6d333c449 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Fri, 19 Jan 2018 12:51:32 +0100 Subject: [PATCH] NOBUG: Rearranging tests for 34_STABLE and master reqs Also moving to plugin-ci 2.x. And disabling behat tests: - They don't work with sudo: false - They work with sudo: required but that adds inestability to results in general. Multiple random failures installing stuff. So disabling seems to be the best option for now, the problem is being traced @ moodlerooms/moodle-plugin-ci#70 --- .travis.yml | 78 +++++++++++++++++++---------------------------------- 1 file changed, 28 insertions(+), 50 deletions(-) diff --git a/.travis.yml b/.travis.yml index 94261b21..51807f95 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,83 +2,61 @@ language: php sudo: false +addons: + firefox: "47.0.1" + postgresql: "9.3" + apt: + packages: + - oracle-java8-installer + - oracle-java8-set-default + cache: directories: - $HOME/.composer/cache + - $HOME/.npm php: - 5.6 - 7.0 - 7.1 - -addons: - postgresql: "9.3" + - 7.2 env: - MOODLE_BRANCH=master DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - MOODLE_BRANCH=master DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes + - MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - - MOODLE_BRANCH=MOODLE_31_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - - MOODLE_BRANCH=MOODLE_30_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - MOODLE_BRANCH=MOODLE_29_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - MOODLE_BRANCH=MOODLE_28_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - MOODLE_BRANCH=MOODLE_27_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no matrix: exclude: + - php: 7.2 + env: MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes + - php: 7.2 + env: MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - php: 7.1 - env: MOODLE_BRANCH=MOODLE_31_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - - php: 7.1 - env: MOODLE_BRANCH=MOODLE_30_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - php: 7.1 - env: MOODLE_BRANCH=MOODLE_29_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - php: 7.1 - env: MOODLE_BRANCH=MOODLE_28_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - php: 7.1 - env: MOODLE_BRANCH=MOODLE_27_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - php: 7.0 env: MOODLE_BRANCH=master DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - - php: 7.0 + - php: 7.1 env: MOODLE_BRANCH=master DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes + - php: 7.1 + env: MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - php: 7.0 env: MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - php: 7.0 env: MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - - php: 7.0 - env: MOODLE_BRANCH=MOODLE_29_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - php: 7.0 - env: MOODLE_BRANCH=MOODLE_28_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - php: 7.0 - env: MOODLE_BRANCH=MOODLE_27_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - php: 5.6 - env: MOODLE_BRANCH=MOODLE_31_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - - php: 5.6 - env: MOODLE_BRANCH=MOODLE_30_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - php: 5.6 - env: MOODLE_BRANCH=MOODLE_29_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no + env: MOODLE_BRANCH=master DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - php: 5.6 - env: MOODLE_BRANCH=MOODLE_28_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no + env: MOODLE_BRANCH=master DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - php: 5.6 - env: MOODLE_BRANCH=MOODLE_27_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - include: - - php: 5.4 - env: MOODLE_BRANCH=MOODLE_31_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes - - php: 5.4 - env: MOODLE_BRANCH=MOODLE_30_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - php: 5.4 - env: MOODLE_BRANCH=MOODLE_29_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - php: 5.4 - env: MOODLE_BRANCH=MOODLE_28_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no - - php: 5.4 - env: MOODLE_BRANCH=MOODLE_27_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=no + env: MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes before_install: - phpenv config-rm xdebug.ini + - nvm install 8.9 + - nvm use 8.9 - cd ../.. - - composer selfupdate - - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^1 - # - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci dev-master + - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2 - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" install: @@ -89,11 +67,11 @@ script: - moodle-plugin-ci phpcpd - moodle-plugin-ci phpmd - moodle-plugin-ci codechecker - - moodle-plugin-ci csslint - - moodle-plugin-ci shifter - - moodle-plugin-ci jshint - moodle-plugin-ci validate + - moodle-plugin-ci savepoints + - moodle-plugin-ci mustache + - moodle-plugin-ci grunt - moodle-plugin-ci phpunit - - if [ $BEHAT == 'yes' ]; then + - if [ $BEHAT == '__stopped_while_fails' ]; then moodle-plugin-ci behat || travis_terminate 1; fi