feat(CI): improve Travis build time (#1573)

* feat(CI): improve Travis build time
This commit is contained in:
Stoabrogga
2019-03-16 15:25:51 +01:00
committed by Viste(Кирилл)
parent cbc0c93d06
commit e2f196580e
5 changed files with 70 additions and 33 deletions

9
apps/ci/ci-compile.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
echo "compile core"
export CCACHE_CPP2=true
ccache -s
timeout 2700 bash ./acore.sh "compiler" "all"
ccache -s

9
apps/ci/ci-import-db.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
if [ "$TRAVIS_BUILD_ID" = "1" ]
then
echo "import DB"
bash ./acore.sh "db-assembler" "import-all"
fi

View File

@@ -23,7 +23,7 @@ MTHREADS=$(expr $(grep -c ^processor /proc/cpuinfo) + 2)
CWARNINGS=ON
CDEBUG=OFF
CTYPE=Release
CSCRIPTS=ON
CSCRIPTS=$1
CSERVERS=ON
CTOOLS=ON
CSCRIPTPCH=OFF
@@ -36,9 +36,3 @@ DB_AUTH_NAME=auth_$DB_RND_NAME
DB_CHARACTERS_NAME=characters_$DB_RND_NAME
DB_WORLD_NAME=world_$DB_RND_NAME
CONFIG_SH
if [ "$TRAVIS_BUILD_ID" = "1" ]
then
echo "import DB"
bash ./acore.sh "db-assembler" "import-all"
fi

View File

@@ -2,12 +2,6 @@
set -e
echo "compile core"
export CCACHE_CPP2=true
ccache -s
timeout 2700 bash ./acore.sh "compiler" "all"
ccache -s
if [ "$TRAVIS_BUILD_ID" = "1" ]
then
echo "start worldserver dry-run"