From 6900c148855bb618e44f490e65dbdcd7c98e8619 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Wed, 27 Dec 2017 08:30:49 +0100 Subject: Add phpunit and Travis files --- .travis.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ phpunit.xml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 .travis.yml create mode 100644 phpunit.xml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1c89428 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,47 @@ +language: php + +sudo: false + +cache: + directories: + - $HOME/.composer/cache + +php: + - 5.6 + - 7.0 + - 7.1 + +addons: + firefox: "47.0.1" + postgresql: "9.3" + +env: + global: + - MOODLE_BRANCH=MOODLE_34_STABLE + matrix: + - DB=pgsql + - DB=mysqli + + + +before_install: + - phpenv config-rm xdebug.ini + - cd ../.. + - composer selfupdate + - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^1 + - 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 csslint + # - moodle-plugin-ci stylelint + - moodle-plugin-ci jshint + - moodle-plugin-ci phpcpd + - moodle-plugin-ci phpmd + - moodle-plugin-ci codechecker +# - moodle-plugin-ci shifter + - moodle-plugin-ci validate + - moodle-plugin-ci phpunit + - moodle-plugin-ci behat \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..593f644 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + . + + + + -- cgit v1.2.3