Skip to content

sillsdev/webonary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webonary

Getting started

After cloning this repository, run the following commands in the terminal.

composer install
cd wordpress-develop
npm install
npx update-browserslist-db@latest
npm run build:dev
cd ..

PHP Unit Testing:

1. Create the test database

mysql --defaults-file=~/.mysql/my.local.conf -Bse "DROP SCHEMA IF EXISTS wp_webonary_test;"
mysql --defaults-file=~/.mysql/my.local.conf -Bse "CREATE SCHEMA IF NOT EXISTS wp_webonary_test DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;"

Original TeamCity PR task

curl -o composer.phar https://getcomposer.org/composer-2.phar
php composer.phar install --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader
php ./wp-resources/localizations/recompile-all-sil-dictionary.php

New TeamCity PR task

# download composer and install composer dependencies
curl -o composer.phar https://getcomposer.org/composer-2.phar
COMPOSER=composer-team-city.json php composer.phar install --verbose --no-progress --no-interaction --optimize-autoloader

# compile the localization files
php ./localizations/recompile-all-sil-dictionary.php

# run PHP Unit tests
./vendor/bin/phpunit --testsuite=webonary-tests --configuration="./phpunit.xml"

About

Source code for Webonary and related applications that support it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 6