Skip to content

Commit d1a2c1e

Browse files
authored
Merge pull request #85 from kabalin/cineutral
Promote CI tool neutrality.
2 parents 9ed20e3 + c74ce42 commit d1a2c1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+114
-114
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ jobs:
7171
- name: Initialise moodle-plugin-ci
7272
run: |
7373
make init
74-
cp -R tests/Fixture/moodle-local_travis ../moodle-local_travis
74+
cp -R tests/Fixture/moodle-local_ci ../moodle-local_ci
7575
echo $(cd bin; pwd) >> $GITHUB_PATH
7676
echo $(cd vendor/bin; pwd) >> $GITHUB_PATH
77-
echo "TRAVIS_BUILD_DIR="$(cd ../moodle-local_travis; pwd) >> $GITHUB_ENV
77+
echo "TRAVIS_BUILD_DIR="$(cd ../moodle-local_ci; pwd) >> $GITHUB_ENV
7878
# PHPUnit depends on en_AU.UTF-8 locale
7979
sudo locale-gen en_AU.UTF-8
8080
# Define NVM_DIR pointing to nvm installation.

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ before_install:
2828
- phpenv config-rm xdebug.ini
2929
- make init
3030
# Mimic how a Moodle plugin would be run.
31-
- cp -R tests/Fixture/moodle-local_travis ../moodle-local_travis
31+
- cp -R tests/Fixture/moodle-local_ci ../moodle-local_ci
3232
- export PATH="$(cd bin; pwd):$(cd vendor/bin; pwd):$PATH"
33-
- export TRAVIS_BUILD_DIR=$(cd ../moodle-local_travis; pwd)
33+
- export TRAVIS_BUILD_DIR=$(cd ../moodle-local_ci; pwd)
3434

3535
install:
3636
- moodle-plugin-ci install -vvv

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![License](https://poser.pugx.org/moodlehq/moodle-plugin-ci/license)](//packagist.org/packages/moodlehq/moodle-plugin-ci)
66

77
The goal of this project is to facilitate the running of tests and code
8-
analysis against a Moodle plugin in CI tools, such as [Travis
8+
analysis against a Moodle plugin using CI environments, such as [Travis
99
CI](https://travis-ci.com) or [GitHub
1010
Actions](https://docs.github.com/en/actions). All of these tests and tools
1111
are run everytime a change is pushed to a GitHub branch or pull request.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "moodlehq/moodle-plugin-ci",
3-
"description": "Assists with running Moodle plugins in Travis CI",
4-
"keywords": ["moodle", "travis", "ci", "testing"],
3+
"description": "Helps running Moodle plugins analysis checks and tests under various CI environments.",
4+
"keywords": ["moodle", "travis", "ci", "testing", "github", "actions"],
55
"type": "project",
66
"license": "GPL-3.0-or-later",
77
"authors": [

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
title: Moodle Plugin CI
2-
description: Moodle plugin + Travis CI
2+
description: Moodle plugin test in CI environment
33
github_username: moodlehq
44
theme: minima
55
header_pages:

tests/Bridge/MoodlePluginTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MoodlePluginTest extends MoodleTestCase
2222
public function testGetComponent()
2323
{
2424
$plugin = new MoodlePlugin($this->pluginDir);
25-
$this->assertSame('local_travis', $plugin->getComponent());
25+
$this->assertSame('local_ci', $plugin->getComponent());
2626
}
2727

2828
public function testGetDependencies()
@@ -108,7 +108,7 @@ public function testGetFiles()
108108
$this->pluginDir.'/classes/math.php',
109109
$this->pluginDir.'/db/access.php',
110110
$this->pluginDir.'/db/upgrade.php',
111-
$this->pluginDir.'/lang/en/local_travis.php',
111+
$this->pluginDir.'/lang/en/local_ci.php',
112112
$this->pluginDir.'/lib.php',
113113
$this->pluginDir.'/tests/lib_test.php',
114114
$this->pluginDir.'/version.php',
@@ -134,7 +134,7 @@ public function testGetRelativeFiles()
134134
'classes/math.php',
135135
'db/access.php',
136136
'db/upgrade.php',
137-
'lang/en/local_travis.php',
137+
'lang/en/local_ci.php',
138138
'lib.php',
139139
'tests/lib_test.php',
140140
'version.php',

tests/Command/CopyPasteDetectorCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CopyPasteDetectorCommandTest extends \PHPUnit_Framework_TestCase
2323

2424
protected function setUp()
2525
{
26-
$this->pluginDir = __DIR__.'/../Fixture/moodle-local_travis';
26+
$this->pluginDir = __DIR__.'/../Fixture/moodle-local_ci';
2727
}
2828

2929
protected function executeCommand($pluginDir = null)

tests/Command/MessDetectorCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MessDetectorCommandTest extends \PHPUnit_Framework_TestCase
2323

2424
protected function setUp()
2525
{
26-
$this->pluginDir = __DIR__.'/../Fixture/moodle-local_travis';
26+
$this->pluginDir = __DIR__.'/../Fixture/moodle-local_ci';
2727
}
2828

2929
protected function executeCommand($pluginDir = null)

tests/Command/PHPLintCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class PHPLintCommandTest extends \PHPUnit_Framework_TestCase
2323

2424
protected function setUp()
2525
{
26-
$this->pluginDir = __DIR__.'/../Fixture/moodle-local_travis';
26+
$this->pluginDir = __DIR__.'/../Fixture/moodle-local_ci';
2727
}
2828

2929
protected function executeCommand($pluginDir = null)

tests/Fake/Bridge/DummyMoodlePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616

1717
class DummyMoodlePlugin extends MoodlePlugin
1818
{
19-
public $component = 'local_travis';
19+
public $component = 'local_ci';
2020
public $dependencies = ['mod_forum'];
2121
}

0 commit comments

Comments
 (0)