Skip to content

Commit

Permalink
Poet - Setting up for 3.6 and stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Churchward committed Dec 3, 2018
1 parent e88caa8 commit 03d523a
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 39 deletions.
59 changes: 48 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,66 @@ sudo: true

addons:
firefox: "47.0.1"
postgresql: "9.3"
postgresql: "9.4"
apt:
packages:
- oracle-java8-installer
- oracle-java8-set-default
- oracle-java9-installer
- oracle-java9-set-default

cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm

php:
- 7.0
- 7.1
- 5.6
- 7.1
- 7.2

env:
global:
- MOODLE_BRANCH=MOODLE_34_STABLE
- MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql
- MOODLE_BRANCH=MOODLE_36_STABLE DB=mysqli
- MOODLE_BRANCH=MOODLE_35_STABLE DB=pgsql
- MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli
- MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql
- MOODLE_BRANCH=MOODLE_34_STABLE DB=mysqli
- MOODLE_BRANCH=MOODLE_33_STABLE DB=pgsql
- MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli

matrix:
- DB=pgsql
- DB=mysqli
matrix:
exclude:
- php: 7.1
env: MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli
- php: 7.1
env: MOODLE_BRANCH=MOODLE_33_STABLE DB=pgsql
- php: 7.2
env: MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli
- php: 7.2
env: MOODLE_BRANCH=MOODLE_33_STABLE DB=pgsql
- php: 5.6
env: MOODLE_BRANCH=MOODLE_34_STABLE DB=mysqli
- php: 5.6
env: MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql
- php: 7.2
env: MOODLE_BRANCH=MOODLE_34_STABLE DB=mysqli
- php: 7.2
env: MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql
- php: 5.6
env: MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli
- php: 5.6
env: MOODLE_BRANCH=MOODLE_35_STABLE DB=pgsql
- php: 7.2
env: MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli
- php: 7.2
env: MOODLE_BRANCH=MOODLE_35_STABLE DB=pgsql
- php: 5.6
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=mysqli
- php: 5.6
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql
- php: 7.1
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=mysqli
- php: 7.1
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql

before_install:
- phpenv config-rm xdebug.ini
Expand All @@ -41,7 +79,6 @@ before_install:
install:
- moodle-plugin-ci install

script:
script:
- moodle-plugin-ci phplint
- moodle-plugin-ci phpcpd
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Release Notes

Release 3.6.0 (Build 2018120300)
First stable release. Compatibile with 3.6, 3.5, 3.4 and 3.3.

Release BETA3.3.4 (Build 2018062800)
GHISSUE-1 - Added hooks to module form to include metadata form elements in the module settings page.
GHISSUE-10 - Implemented Privacy API for GDPR compliance.
Expand Down
12 changes: 6 additions & 6 deletions context/category/tests/behat/enable_category.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Feature: Enable category context plugin
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "Settings" node in "Site administration > Plugins > Local plugins > Metadata"
And I navigate to "Plugins > Local plugins > Metadata" in site administration
And I set the field "id_s_metadatacontext_category_metadataenabled" to "1"
And I press "Save changes"
Then the field "s_metadatacontext_category_metadataenabled" matches value "1"
And I navigate to "Courses" node in "Site administration"
And I navigate to "Courses" in site administration
Then I should see "Category metadata"
And I navigate to "Category metadata" node in "Site administration > Courses"
And I navigate to "Courses > Category metadata" in site administration
Then I should see "Category metadata"
And I should see "Create a new profile field:"
And I should see "Create a new profile category"
Expand All @@ -36,9 +36,9 @@ Feature: Enable category context plugin
Then I should see "Category metadata"
And I should see "Creation date"

And I navigate to "Courses" node in "Site administration"
And I navigate to "Courses" in site administration
And I press "Blocks editing on"
And I navigate to "Manage courses and categories" node in "Site administration > Courses"
And I navigate to "Courses > Manage courses and categories" in site administration
Then I should see "Miscellaneous"
And I add the "Administration" block
And I follow "Edit this category"
Expand All @@ -54,7 +54,7 @@ Feature: Enable category context plugin
And I press "Save changes"
And I should see "Metadata saved"

And I navigate to "Manage courses and categories" node in "Site administration > Courses"
And I navigate to "Courses > Manage courses and categories" in site administration
And I follow "Edit this category"
And I follow "Category metadata"
Then I should see "Creation date"
Expand Down
10 changes: 5 additions & 5 deletions context/cohort/tests/behat/enable_cohort.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Feature: Enable cohort context plugin
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "Settings" node in "Site administration > Plugins > Local plugins > Metadata"
And I navigate to "Plugins > Local plugins > Metadata" in site administration
And I set the field "id_s_metadatacontext_cohort_metadataenabled" to "1"
And I press "Save changes"
Then the field "s_metadatacontext_cohort_metadataenabled" matches value "1"

And I navigate to "Users" node in "Site administration"
And I navigate to "Users" in site administration
Then I should see "Cohort metadata"
And I navigate to "Cohort metadata" node in "Site administration > Users"
And I navigate to "Users > Cohort metadata" in site administration
Then I should see "Cohort metadata"
And I should see "Create a new profile field:"
And I should see "Create a new profile category"
Expand All @@ -35,7 +35,7 @@ Feature: Enable cohort context plugin
Then I should see "Cohort metadata"
And I should see "Cohort Manager ID"

And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts > Cohorts" in site administration
And I press "Blocks editing on"
And I follow "Add new cohort"
Then I should see "Add new cohort"
Expand All @@ -52,7 +52,7 @@ Feature: Enable cohort context plugin
And I set the field "id_local_metadata_field_managerid" to "MANAGER001"
And I press "Save changes"
And I should see "Metadata saved"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to " Users > Accounts > Cohorts" in site administration
And I should see "Cohort One"
And I click on "Edit" "link" in the "//table[@id='cohorts']//tr[1]//td[6]" "xpath_element"
And I should see "Edit cohort"
Expand Down
6 changes: 3 additions & 3 deletions context/course/tests/behat/enable_course.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Feature: Enable course context plugin
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "Settings" node in "Site administration > Plugins > Local plugins > Metadata"
And I navigate to "Plugins > Local plugins > Metadata" in site administration
And I set the field "id_s_metadatacontext_course_metadataenabled" to "1"
And I press "Save changes"
Then the field "s_metadatacontext_course_metadataenabled" matches value "1"

And I navigate to "Courses" node in "Site administration"
And I navigate to "Courses" in site administration
Then I should see "Course metadata"
And I navigate to "Course metadata" node in "Site administration > Courses"
And I navigate to "Courses > Course metadata" in site administration
Then I should see "Course metadata"
And I should see "Create a new profile field:"
And I should see "Create a new profile category"
Expand Down
8 changes: 4 additions & 4 deletions context/group/tests/behat/enable_group.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ Feature: Enable group context plugin
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "Settings" node in "Site administration > Plugins > Local plugins > Metadata"
And I navigate to "Plugins > Local plugins > Metadata" in site administration
And I set the field "id_s_metadatacontext_group_metadataenabled" to "1"
And I press "Save changes"
Then the field "s_metadatacontext_group_metadataenabled" matches value "1"

And I navigate to "Courses" node in "Site administration"
And I navigate to "Courses" in site administration
Then I should see "Group metadata"
And I navigate to "Group metadata" node in "Site administration > Courses"
And I navigate to "Courses > Group metadata" in site administration
Then I should see "Group metadata"
And I should see "Create a new profile field:"
And I should see "Create a new profile category"
Expand All @@ -49,7 +49,7 @@ Feature: Enable group context plugin

And I am on "Course 1" course homepage
And I turn editing mode on
And I navigate to "Groups" node in "Course administration > Users"
And I navigate to "Users > Groups" in current page administration
And I set the field "Groups" to "Group A"
And I press "Edit group settings"
And I add the "Administration" block
Expand Down
6 changes: 3 additions & 3 deletions context/module/tests/behat/enable_module.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ Feature: Enable module context plugin
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "Settings" node in "Site administration > Plugins > Local plugins > Metadata"
And I navigate to "Plugins > Local plugins > Metadata" in site administration
And I set the field "id_s_metadatacontext_module_metadataenabled" to "1"
And I press "Save changes"
Then the field "s_metadatacontext_module_metadataenabled" matches value "1"

And I navigate to "Plugins" node in "Site administration"
And I navigate to "Plugins" in site administration
Then I should see "Module metadata"
And I navigate to "Module metadata" node in "Site administration > Plugins"
And I navigate to "Plugins > Module metadata" in site administration
Then I should see "Module metadata"
And I should see "Create a new profile field:"
And I should see "Create a new profile category"
Expand Down
8 changes: 4 additions & 4 deletions context/user/tests/behat/enable_user.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Feature: Enable user context plugin
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "Settings" node in "Site administration > Plugins > Local plugins > Metadata"
And I navigate to "Plugins > Local plugins > Metadata" in site administration
And I set the field "id_s_metadatacontext_user_metadataenabled" to "1"
And I press "Save changes"
Then the field "s_metadatacontext_user_metadataenabled" matches value "1"

And I navigate to "Users" node in "Site administration"
And I navigate to "Users" in site administration
Then I should see "User metadata"
And I navigate to "User metadata" node in "Site administration > Users"
And I navigate to "Users > User metadata" in site administration
Then I should see "User metadata"
And I should see "Create a new profile field:"
And I should see "Create a new profile category"
Expand All @@ -35,7 +35,7 @@ Feature: Enable user context plugin
Then I should see "User metadata"
And I should see "I accept the site policy"

And I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts > Browse list of users" in site administration
And I follow "Teacher 1"
Then I should see "Metadata"
And I should see "I accept the site policy"
Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
*/

defined('MOODLE_INTERNAL') || die;
$plugin->version = 2017070104;
$plugin->release = 'BETA3.3.4 (Build 2018062800)';
$plugin->maturity = MATURITY_BETA;
$plugin->version = 2018120100;
$plugin->release = '3.6.0 (Build 2018120300)';
$plugin->maturity = MATURITY_STABLE;
$plugin->requires = 2016052300; // Moodle 3.1 release and upwards.
$plugin->component = 'local_metadata';

0 comments on commit 03d523a

Please sign in to comment.