feat(CI): migrate from Travis to GitHub Actions (#2887)

Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>
This commit is contained in:
Rochet2
2020-04-19 18:33:13 +03:00
committed by GitHub
parent 2514f8fc9a
commit 1397971943
13 changed files with 145 additions and 152 deletions
+8 -9
View File
@@ -2,14 +2,13 @@
set -e
if [ "$TRAVIS_BUILD_ID" = "1" ]
then
echo "import DB"
bash ./acore.sh "db-assembler" "import-all"
sudo systemctl start mysql
./acore.sh "db-assembler" "import-all"
if [ -s modules/mod-premium/sql/example_item_9017.sql ]
then
# if the premium module is available insert the example item or else the worldserver dry run will fail
mysql -u root world_$DB_RND_NAME <modules/mod-premium/sql/example_item_9017.sql
fi
if [ -s modules/mod-premium/sql/example_item_9017.sql ]
then
echo "Import custom module item..."
# if the premium module is available insert the example item or else the worldserver dry run will fail
mysql -uroot -proot acore_world < modules/mod-premium/sql/example_item_9017.sql
echo "Done!"
fi