From 7bf8b9a7483d240967580b6c24324bb083e953eb Mon Sep 17 00:00:00 2001 From: Anupama Dharmajan Date: Thu, 13 Jan 2022 16:05:47 +1100 Subject: [PATCH] Add reusable workflow for moodle release --- .github/workflows/moodle-release.yml | 20 ++++++++++++ .travis.yml | 47 ---------------------------- README.md | 4 +-- version.php | 3 +- 4 files changed, 23 insertions(+), 51 deletions(-) create mode 100644 .github/workflows/moodle-release.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/moodle-release.yml b/.github/workflows/moodle-release.yml new file mode 100644 index 0000000..cb2a41f --- /dev/null +++ b/.github/workflows/moodle-release.yml @@ -0,0 +1,20 @@ +# +# Whenever version.php is changed, add the latest version +# to the Moodle Plugins directory at https://moodle.org/plugins +# +name: Releasing in the Plugins directory + +on: + push: + branches: + - MOODLE_32_STABLE + paths: + - 'version.php' + +jobs: + workflow_group_27_to_32_release: + uses: catalyst/catalyst-moodle-workflows/.github/workflows/group-27-to-32-release.yml@main + with: + plugin_name: auth_enrolkey + secrets: + moodle_org_token: ${{ secrets.MOODLE_ORG_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e8c4829..0000000 --- a/.travis.yml +++ /dev/null @@ -1,47 +0,0 @@ -language: php - -cache: - directories: - - $HOME/.composer/cache - -addons: - postgresql: "9.5" - -services: - - mysql - -php: - - 7.0 - -env: - - DB=pgsql MOODLE_BRANCH=MOODLE_30_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_31_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE - -matrix: - include: - - php: 5.6 - env: DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE - - php: 5.6 - env: DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE - -before_install: - - phpenv config-rm xdebug.ini - - cd ../.. - - composer selfupdate - - composer create-project -n --no-dev moodlehq/moodle-plugin-ci ci ^1 - - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" - -install: - - moodle-plugin-ci install -vvv - -script: - - moodle-plugin-ci validate - - 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 phpunit diff --git a/README.md b/README.md index 707467f..d7dff5b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ - - - +![Build Status](https://github.com/catalyst/moodle-auth_outage/actions/workflows/ci.yml/badge.svg?branch=MOODLE_32_STABLE)(https://github.com/catalyst/moodle-auth_outage/actions) # Moodle Outage manager plugin diff --git a/version.php b/version.php index 5ae578a..db02870 100644 --- a/version.php +++ b/version.php @@ -28,7 +28,8 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = "auth_outage"; -$plugin->version = 2018062500; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2018062501; // The current plugin version (Date: YYYYMMDDXX). $plugin->release = '1.0.9'; // Human-readable release information. $plugin->requires = 2014051200; // Requires Moodle 2.7 or later. Moodle 3.0 or later recommended. $plugin->maturity = MATURITY_STABLE; // Suitable for PRODUCTION environments! +$plugin->supported = [27, 32]; // A range of branch numbers of supported moodle versions.