Skip to content

Commit

Permalink
Moodle 3.10 release.
Browse files Browse the repository at this point in the history
Migrate to travis-ci.com
  • Loading branch information
paulholden committed Nov 9, 2020
1 parent ce097c0 commit 3b820df
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 22 deletions.
13 changes: 5 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: php

addons:
postgresql: "9.5"
postgresql: "9.6"

services:
- docker
Expand All @@ -19,21 +19,18 @@ env:

matrix:
include:
- php: 7.0
env: MOODLE_BRANCH=MOODLE_35_STABLE

- php: 7.0
env: MOODLE_BRANCH=MOODLE_36_STABLE

- php: 7.1
env: MOODLE_BRANCH=MOODLE_37_STABLE
env: MOODLE_BRANCH=MOODLE_35_STABLE

- php: 7.2
env: MOODLE_BRANCH=MOODLE_38_STABLE

- php: 7.3
env: MOODLE_BRANCH=MOODLE_39_STABLE

- php: 7.3
env: MOODLE_BRANCH=MOODLE_310_STABLE

before_install:
- phpenv config-rm xdebug.ini
- cd ../..
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Cohort role synchronization [![Build Status](https://travis-ci.org/paulholden/moodle-local_cohortrole.svg?branch=master)](https://travis-ci.org/paulholden/moodle-local_cohortrole)
# Cohort role synchronization [![Build Status](https://travis-ci.com/paulholden/moodle-local_cohortrole.svg?branch=master)](https://travis-ci.com/paulholden/moodle-local_cohortrole)

## Requirements

Expand Down
18 changes: 10 additions & 8 deletions tests/observers_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

global $CFG;
require_once($CFG->dirroot . '/cohort/lib.php');

/**
* Unit tests for event observers
*
Expand All @@ -40,12 +35,19 @@ class local_cohortrole_observers_testcase extends advanced_testcase {
/** @var \local_cohortrole\persistent $persistent. */
protected $persistent;

/**
* Load required test libraries
*/
public static function setUpBeforeClass(): void {
global $CFG;

require_once("{$CFG->dirroot}/cohort/lib.php");
}

/**
* Test setup
*
* @return void
*/
protected function setUp() {
protected function setUp(): void {
$this->resetAfterTest(true);

// Create test role/cohort.
Expand Down
4 changes: 1 addition & 3 deletions tests/privacy_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

use core_privacy\local\request\userlist;
use core_privacy\local\request\writer;
use core_privacy\tests\provider_testcase;
Expand Down Expand Up @@ -50,7 +48,7 @@ class local_cohortrole_privacy_testcase extends provider_testcase {
*
* @return void
*/
protected function setUp() {
protected function setUp(): void {
$this->resetAfterTest(true);

// Create test user.
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'local_cohortrole';
$plugin->release = '3.2';
$plugin->version = 2020061800;
$plugin->release = '3.3';
$plugin->version = 2020110900;
$plugin->requires = 2018051703; // Moodle 3.5.3 onwards.
$plugin->maturity = MATURITY_STABLE;

0 comments on commit 3b820df

Please sign in to comment.