diff --git a/.travis.yml b/.travis.yml index 3534454..01343c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,12 @@ -# Source : https://github.com/blackboard-open-source/moodle-plugin-ci/blob/master/.travis.dist.yml - language: php -sudo: true - addons: - firefox: "47.0.1" - postgresql: "9.4" - apt: - packages: - - openjdk-8-jre-headless + postgresql: "9.6" + +services: + - mysql + - postgresql + - docker cache: directories: @@ -17,25 +14,21 @@ cache: - $HOME/.npm php: - - 7.0 - - 7.1 + - 7.2 + - 7.3 + - 7.4 env: global: - - MOODLE_BRANCH=MOODLE_35_STABLE + - MOODLE_BRANCH=MOODLE_39_STABLE matrix: - DB=pgsql - DB=mysqli -services: - - mysql - before_install: - phpenv config-rm xdebug.ini - - nvm install 8.9 - - nvm use 8.9 - cd ../.. - - composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2 + - composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3 - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" install: @@ -50,3 +43,6 @@ script: - moodle-plugin-ci savepoints - moodle-plugin-ci mustache - moodle-plugin-ci grunt + - moodle-plugin-ci phpdoc + - moodle-plugin-ci phpunit + - moodle-plugin-ci behat --dump diff --git a/client/testmethode.php b/client/testmethode.php index eb906ed..6d787f5 100644 --- a/client/testmethode.php +++ b/client/testmethode.php @@ -31,8 +31,6 @@ /* * Imports of class files. */ -$toolpath = dirname(__FILE__); - $username = optional_param('username', 'rv0', PARAM_ALPHANUM); $context = context_system::instance(); @@ -41,7 +39,7 @@ require_login(); // Always create trainings. -$urlact = new moodle_url($toolpath . '/testmethode.php', ['username' => $username]); +$urlact = new moodle_url('/local/wsattestoodle/client/testmethode.php', ['username' => $username]); $PAGE->set_url($urlact); $PAGE->set_title("TEST"); diff --git a/client/testws.php b/client/testws.php index ce62ef8..dea6576 100644 --- a/client/testws.php +++ b/client/testws.php @@ -45,11 +45,10 @@ $resp = xmlrpc_decode($curl->post($serverurl, $post)); } -$toolpath = dirname(__FILE__); $context = context_system::instance(); $PAGE->set_context($context); require_login(); -$urlact = new moodle_url($toolpath . '/testmethode.php', []); +$urlact = new moodle_url('/local/wsattestoodle/client/testmethode.php', []); $PAGE->set_url($urlact); $PAGE->set_title("TEST"); diff --git a/version.php b/version.php index 577ceb4..3c3da2b 100644 --- a/version.php +++ b/version.php @@ -26,7 +26,7 @@ $plugin->component = 'local_wsattestoodle'; $plugin->release = '0.1.1'; -$plugin->version = 2019111501; +$plugin->version = 2021052101; $plugin->requires = 2017051500; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = [