mirror of
https://github.com/LdesignMedia/moodle-availability_ipaddress.git
synced 2026-05-16 21:41:28 +02:00
Add .travis
This commit is contained in:
56
.travis.yml
Normal file
56
.travis.yml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
language: php
|
||||||
|
|
||||||
|
# Workaround for fixing that Selenium server is not running and therefore javascript Behat tests are not working:
|
||||||
|
# https://github.com/moodlerooms/moodle-plugin-ci/issues/70
|
||||||
|
sudo: required
|
||||||
|
|
||||||
|
addons:
|
||||||
|
firefox: "47.0.1"
|
||||||
|
postgresql: "9.4"
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- openjdk-8-jre-headless
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.composer/cache
|
||||||
|
- $HOME/.npm
|
||||||
|
|
||||||
|
php:
|
||||||
|
# PHP 5.6 gives errors because of the provider.php needs to be PHP7
|
||||||
|
- 7.0
|
||||||
|
- 7.1
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- MOODLE_BRANCH=MOODLE_32_STABLE
|
||||||
|
- MOODLE_BRANCH=MOODLE_35_STABLE
|
||||||
|
- MOODLE_BRANCH=MOODLE_36_STABLE
|
||||||
|
matrix:
|
||||||
|
- DB=pgsql
|
||||||
|
- DB=mysqli
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- phpenv config-rm xdebug.ini
|
||||||
|
- nvm install 8.9
|
||||||
|
- nvm use 8.9
|
||||||
|
- cd ../..
|
||||||
|
- 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:
|
||||||
|
- moodle-plugin-ci add-plugin moodlehq/moodle-local_moodlecheck
|
||||||
|
- moodle-plugin-ci install
|
||||||
|
|
||||||
|
script:
|
||||||
|
- php moodle/local/moodlecheck/cli/moodlecheck.php --path=availability/condition/ipaddress --format=text
|
||||||
|
- moodle-plugin-ci phplint
|
||||||
|
- moodle-plugin-ci phpcpd
|
||||||
|
- moodle-plugin-ci phpmd
|
||||||
|
- moodle-plugin-ci codechecker
|
||||||
|
- moodle-plugin-ci validate
|
||||||
|
- moodle-plugin-ci savepoints
|
||||||
|
- moodle-plugin-ci mustache
|
||||||
|
- moodle-plugin-ci grunt
|
||||||
|
- moodle-plugin-ci phpunit
|
||||||
|
- moodle-plugin-ci behat
|
||||||
Reference in New Issue
Block a user