-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3272 from moodlehq/integration
Integration
- Loading branch information
Showing
1,490 changed files
with
87,888 additions
and
36,441 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* text=auto | ||
*.ts eol=lf |
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,63 @@ | ||
name: Performance | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
performance: | ||
runs-on: ubuntu-latest | ||
env: | ||
MOODLE_DOCKER_DB: pgsql | ||
MOODLE_DOCKER_BROWSER: chrome | ||
MOODLE_DOCKER_PHP_VERSION: 7.3 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- id: nvmrc | ||
uses: browniebroke/read-nvmrc-action@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '${{ steps.nvmrc.outputs.node_version }}' | ||
- name: Additional checkouts | ||
run: | | ||
git clone --branch master --depth 1 https://github.com/moodle/moodle $GITHUB_WORKSPACE/moodle | ||
git clone --branch integration --depth 1 https://github.com/moodlehq/moodle-local_moodlemobileapp $GITHUB_WORKSPACE/moodle/local/moodlemobileapp | ||
git clone --branch master --depth 1 https://github.com/moodlehq/moodle-docker $GITHUB_WORKSPACE/moodle-docker | ||
- name: Install npm packages | ||
run: | | ||
npm install -g npm@7 | ||
npm ci --no-audit | ||
- name: Generate Behat tests plugin | ||
run: | | ||
export MOODLE_DOCKER_WWWROOT=$GITHUB_WORKSPACE/moodle | ||
npx gulp behat | ||
- name: Configure & launch Moodle with Docker | ||
run: | | ||
export MOODLE_DOCKER_WWWROOT=$GITHUB_WORKSPACE/moodle | ||
cp $GITHUB_WORKSPACE/moodle-docker/config.docker-template.php $GITHUB_WORKSPACE/moodle/config.php | ||
sed -i "59i\ 'capabilities' => [" $GITHUB_WORKSPACE/moodle/config.php | ||
sed -i "60i\ 'extra_capabilities' => [" $GITHUB_WORKSPACE/moodle/config.php | ||
sed -i "61i\ 'goog:loggingPrefs' => ['performance' => 'ALL']," $GITHUB_WORKSPACE/moodle/config.php | ||
sed -i "62i\ 'chromeOptions' => ['perfLoggingPrefs' => ['traceCategories' => 'devtools.timeline']]," $GITHUB_WORKSPACE/moodle/config.php | ||
sed -i "63i\ ]," $GITHUB_WORKSPACE/moodle/config.php | ||
sed -i "64i\ ]," $GITHUB_WORKSPACE/moodle/config.php | ||
sed -i "76i\$CFG->behat_ionic_wwwroot = 'http://moodleapp';" $GITHUB_WORKSPACE/moodle/config.php | ||
$GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-compose pull | ||
$GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-compose up -d | ||
$GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-wait-for-db | ||
- name: Compile & launch production app with Docker | ||
run: | | ||
docker build -t moodlehq/moodleapp:performance . | ||
docker run -d --rm --name moodleapp moodlehq/moodleapp:performance | ||
docker network connect moodle-docker_default moodleapp --alias moodleapp | ||
- name: Init Behat | ||
run: | | ||
export MOODLE_DOCKER_WWWROOT=$GITHUB_WORKSPACE/moodle | ||
$GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-compose exec -T webserver sh -c "php admin/tool/behat/cli/init.php" | ||
- name: Run performance tests | ||
run: | | ||
export MOODLE_DOCKER_WWWROOT=$GITHUB_WORKSPACE/moodle | ||
for i in {0..2} | ||
do | ||
$GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-compose exec -T webserver sh -c "php admin/tool/behat/cli/run.php --tags="@performance" --auto-rerun" | ||
done | ||
- name: Show performance results | ||
run: node ./scripts/print-performance-measures.js $GITHUB_WORKSPACE/moodle/behatperformancemeasures/ |
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.15.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,22 +1,15 @@ | ||
Moodle Mobile | ||
Moodle App | ||
================= | ||
|
||
This is the primary repository of source code for the official Moodle Mobile app. | ||
This is the primary repository of source code for the official mobile app for Moodle. | ||
|
||
* [User documentation](http://docs.moodle.org/en/Moodle_Mobile) | ||
* [Developer documentation](http://docs.moodle.org/dev/Moodle_Mobile) | ||
* [Development environment setup](http://docs.moodle.org/dev/Setting_up_your_development_environment_for_Moodle_Mobile_2) | ||
* [User documentation](https://docs.moodle.org/en/Moodle_app) | ||
* [Developer documentation](http://docs.moodle.org/dev/Moodle_App) | ||
* [Development environment setup](https://docs.moodle.org/dev/Setting_up_your_development_environment_for_the_Moodle_App) | ||
* [Bug Tracker](https://tracker.moodle.org/browse/MOBILE) | ||
* [Release Notes](http://docs.moodle.org/dev/Moodle_Mobile_Release_Notes) | ||
* [Release Notes](https://docs.moodle.org/dev/Moodle_App_Release_Notes) | ||
|
||
License | ||
------- | ||
|
||
[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0) | ||
|
||
Big Thanks | ||
----------- | ||
|
||
Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs](https://saucelabs.com) | ||
|
||
![Sauce Labs Logo](https://user-images.githubusercontent.com/557037/43443976-d88d5a78-94a2-11e8-8915-9f06521423dd.png) |
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.