mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-01 01:16:38 +00:00
661ad61486
* ci: WIP add PHP Unit Tests
* ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
* ci: Add phpunit tests
---------
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
36 lines
838 B
Bash
36 lines
838 B
Bash
#! /bin/bash
|
|
|
|
MW_BRANCH=$1
|
|
EXTENSION_NAME=$2
|
|
|
|
wget https://github.com/wikimedia/mediawiki/archive/$MW_BRANCH.tar.gz -nv
|
|
|
|
tar -zxf $MW_BRANCH.tar.gz
|
|
mv mediawiki-$MW_BRANCH mediawiki
|
|
|
|
cd mediawiki
|
|
|
|
composer install
|
|
php maintenance/install.php --dbtype sqlite --dbuser root --dbname mw --dbpath $(pwd) --pass AdminPassword WikiName AdminUser
|
|
|
|
# echo 'error_reporting(E_ALL| E_STRICT);' >> LocalSettings.php
|
|
# echo 'ini_set("display_errors", 1);' >> LocalSettings.php
|
|
echo '$wgShowExceptionDetails = true;' >> LocalSettings.php
|
|
echo '$wgShowDBErrorBacktrace = true;' >> LocalSettings.php
|
|
echo '$wgDevelopmentWarnings = true;' >> LocalSettings.php
|
|
|
|
echo 'wfLoadSkin( "Citizen" );' >> LocalSettings.php
|
|
|
|
cat <<EOT >> composer.local.json
|
|
{
|
|
"require": {
|
|
|
|
},
|
|
"extra": {
|
|
"merge-plugin": {
|
|
"merge-dev": true,
|
|
"include": []
|
|
}
|
|
}
|
|
}
|
|
EOT |