Browse Source

speed up travis checks.

MOODLE_33_STABLE
Dan Marsden 8 years ago
parent
commit
a52f8f6e95
  1. 38
      .travis.yml

38
.travis.yml

@ -11,13 +11,13 @@ php:
- 7.0 - 7.0
matrix: matrix:
allow_failures: allow_failures:
- php: 5.6 # travis seems to fail on adding activity - doesn't fail when running behat locally. - php: 5.6 # travis seems to fail on adding activity - doesn't fail when running behat locally.
env: env:
matrix: matrix:
- DB=pgsql MOODLE_BRANCH=master TASK=PHP - DB=pgsql MOODLE_BRANCH=master TASK=FULL
- DB=mysqli MOODLE_BRANCH=master TASK=codecheck - DB=mysqli MOODLE_BRANCH=master TASK=LIMITED
before_install: before_install:
- phpenv config-rm xdebug.ini - phpenv config-rm xdebug.ini
@ -31,23 +31,23 @@ install:
script: script:
- > - >
if [ "$TASK" = 'PHP' ]; if [ "$TASK" = 'FULL' ];
then then
moodle-plugin-ci phplint moodle-plugin-ci phplint
moodle-plugin-ci phpcpd moodle-plugin-ci phpcpd
moodle-plugin-ci phpmd 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 phpunit
moodle-plugin-ci behat
fi fi
- > - >
if [ "$TASK" = 'codecheck' ]; if [ "$TASK" = 'LIMITED' ];
then then
- moodle-plugin-ci phplint moodle-plugin-ci phplint
- moodle-plugin-ci phpcpd moodle-plugin-ci phpunit
- moodle-plugin-ci phpmd moodle-plugin-ci behat
- moodle-plugin-ci codechecker
- moodle-plugin-ci csslint
- moodle-plugin-ci shifter
- moodle-plugin-ci jshint
- moodle-plugin-ci validate
- moodle-plugin-ci phpunit
- moodle-plugin-ci behat
fi fi
Loading…
Cancel
Save