aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2017-12-27 08:30:49 +0100
committerJean-Michel Vedrine <vedrine@vedrine.org>2017-12-27 08:30:49 +0100
commit6900c148855bb618e44f490e65dbdcd7c98e8619 (patch)
treefb5de21136b9d83338b3eeff10321d45d8f64a56 /.travis.yml
parentfce013e113eb0587d7b8885020670e9ff9ae2d03 (diff)
Add phpunit and Travis files
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml47
1 files changed, 47 insertions, 0 deletions
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