forked from moodlehq/moodle-plugin-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use .nvmrc for picking the right version of Node.js.
Since Moodle 3.5 there is .nvmrc file at the top directory specifying Node.js (npm) version Node Package Manager (nvm) should install. We can use this to initialise Node.js environment as part of install process, so that user would not need to worry about having correct version of Node in before_install step. This closes #7
- Loading branch information
Showing
14 changed files
with
178 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v14.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,21 +17,21 @@ | |
use MoodlePluginCI\Installer\MoodleInstaller; | ||
use MoodlePluginCI\Tests\Fake\Bridge\DummyMoodle; | ||
use MoodlePluginCI\Tests\Fake\Process\DummyExecute; | ||
use MoodlePluginCI\Tests\FilesystemTestCase; | ||
use MoodlePluginCI\Tests\MoodleTestCase; | ||
|
||
class MoodleInstallerTest extends FilesystemTestCase | ||
class MoodleInstallerTest extends MoodleTestCase | ||
{ | ||
public function testInstall() | ||
{ | ||
$dataDir = $this->tempDir.'/moodledata'; | ||
$moodle = new DummyMoodle($this->tempDir); | ||
$moodle = new DummyMoodle($this->moodleDir); | ||
$installer = new MoodleInstaller( | ||
new DummyExecute(), | ||
new MySQLDatabase(), | ||
$moodle, | ||
new MoodleConfig(), | ||
'[email protected]:moodle/moodle.git', | ||
'MOODLE_27_STABLE', | ||
'MOODLE_39_STABLE', | ||
$dataDir | ||
); | ||
$installer->install(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.