Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
NOBUG: Adding travis (plugin) support
Adding travis support using the cool: https://github.com/moodlerooms/moodle-plugin-ci Plus minor fixes to make it pass.
- Loading branch information
Showing
11 changed files
with
138 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
language: php | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
php: | ||
- 5.4 | ||
- 7.0 | ||
|
||
env: | ||
- MOODLE_BRANCH=master DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs | ||
- MOODLE_BRANCH=master DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs | ||
- MOODLE_BRANCH=MOODLE_30_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs | ||
- MOODLE_BRANCH=MOODLE_29_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs | ||
- MOODLE_BRANCH=MOODLE_28_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs | ||
- MOODLE_BRANCH=MOODLE_27_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs | ||
|
||
matrix: | ||
exclude: | ||
- php: 7.0 | ||
env: MOODLE_BRANCH=MOODLE_27_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs | ||
- php: 7.0 | ||
env: MOODLE_BRANCH=MOODLE_28_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs | ||
- php: 7.0 | ||
env: MOODLE_BRANCH=MOODLE_29_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs | ||
|
||
before_install: | ||
- phpenv config-rm xdebug.ini | ||
- 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 | ||
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" | ||
|
||
install: | ||
- moodle-plugin-ci install | ||
|
||
script: | ||
- moodle-plugin-ci phplint | ||
- 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 phpunit | ||
- moodle-plugin-ci behat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<libraries> | ||
<library> | ||
<location>pear</location> | ||
<name>PHP_CodeSniffer</name> | ||
<version>pre 2.6.0 (8c5d176)</version> | ||
<license>BSD 3-Clause</license> | ||
</library> | ||
<library> | ||
<location>PHPCompatibility</location> | ||
<name>PHP Compatibility Coding Standard</name> | ||
<version>(1becdd2)</version> | ||
<license>LGPL</license> | ||
<licenseversion>3</licenseversion> | ||
</library> | ||
</libraries> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters