Skip to content

Commit c74ce42

Browse files
committed
Rename local_travis -> local_ci
1 parent 1694f19 commit c74ce42

Some content is hidden

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

48 files changed

+107
-107
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

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
}

tests/Fixture/bad-install.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
55
>
66
<TABLES>
7-
<TABLE NAME="local_travis_config" COMMENT="This is a config table.">
7+
<TABLE NAME="local_ci_config" COMMENT="This is a config table.">
88
<FIELDS>
99
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
1010
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"/>
@@ -26,7 +26,7 @@
2626
<KEY NAME="name" TYPE="unique" FIELDS="name"/>
2727
</KEYS>
2828
</TABLE>
29-
<TABLE NAME="local_travis_config2" COMMENT="This is a config table.">
29+
<TABLE NAME="local_ci_config2" COMMENT="This is a config table.">
3030
<FIELDS>
3131
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
3232
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"/>

tests/Fixture/broken-upgrade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
/**
1818
* Plugin upgrade file
1919
*
20-
* @package local_travis
20+
* @package local_ci
2121
* @copyright Copyright (c) 2017 Blackboard Inc. (http://www.blackboard.com)
2222
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2323
*/
2424

2525
/**
26-
* Execute local_travis upgrade from the given old version.
26+
* Execute local_ci upgrade from the given old version.
2727
*
2828
* @param int $oldversion
2929
* @return bool
3030
*/
31-
function xmldb_local_travis_upgrade($oldversion) {
31+
function xmldb_local_ci_upgrade($oldversion) {
3232
if ($oldversion < 2011033101) {
3333
upgrade_plugin_savepoint(true, 2011033102, 'local', 'travis');
3434
}
File renamed without changes.

0 commit comments

Comments
 (0)