[API change] Use just one option to specify the build target.

There is no more option for static or share build. This value is
integrated in the build-target.
This commit is contained in:
Matthieu Gautier
2017-02-22 15:26:24 +01:00
parent c31a29488a
commit 29bba313bc
6 changed files with 47 additions and 50 deletions

View File

@ -2,9 +2,4 @@
set -e
OPTION=""
if [ "${STATIC_BUILD}" = "true" ]; then
OPTION="--build-static"
fi
./kiwix-build.py --build-target=${BUILD_TARGET} ${OPTION}
./kiwix-build.py $BUILD_OPTION

View File

@ -6,14 +6,8 @@ SSH_KEY=travis/travisci_builder_id_key
chmod 600 ${SSH_KEY}
BASE_DIR="BUILD_${BUILD_TARGET}_static/INSTALL"
if [ "${BUILD_TARGET}" = "win32" ]; then
ARCHIVE_OPTION="--zip"
else
ARCHIVE_OPTION="--tar"
fi
./kiwix-deploy.py ${BASE_DIR} ${ARCHIVE_OPTION} \
BASE_DIR="BUILD_*/INSTALL"
./kiwix-deploy.py ${BASE_DIR} ${ARCHIVE_TYPE} \
--deploy \
--ssh_private_key=${SSH_KEY} \
--server=nightlybot@download.kiwix.org \