mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
New travis script written in python and handle release deployement.
`compile_all.sh` script starts to be very complex. Let's rewrite it in python. In the same time, update the travis scripts to handle deployement of release versions.
This commit is contained in:
@ -4,6 +4,8 @@ set -e
|
||||
|
||||
NIGHTLY_ARCHIVES_DIR=${HOME}/NIGHTLY_ARCHIVES
|
||||
RELEASE_ARCHIVES_DIR=${HOME}/RELEASE_ARCHIVES
|
||||
DIST_KIWIX_ARCHIVES_DIR=${HOME}/DIST_KIWIX_ARCHIVES
|
||||
DIST_ZIM_ARCHIVES_DIR=${HOME}/DIST_ZIM_ARCHIVES
|
||||
SSH_KEY=travis/travisci_builder_id_key
|
||||
|
||||
NIGHTLY_ARCHIVES=$(find $NIGHTLY_ARCHIVES_DIR -type f)
|
||||
@ -21,3 +23,20 @@ then
|
||||
${RELEASE_ARCHIVES} \
|
||||
nightlybot@downoald.kiwix.org:/var/www/download.kiwix.org/releases
|
||||
fi
|
||||
|
||||
DIST_KIWIX_ARCHIVES=$(find $DIST_KIWIX_ARCHIVES_DIR -type f)
|
||||
if [[ "x$DIST_KIWIX_ARCHIVES" != "x" ]]
|
||||
then
|
||||
scp -vrp -i ${SSH_KEY} \
|
||||
${DIST_KIWIX_ARCHIVES} \
|
||||
nightlybot@download.kiwix.org:/var/www/download.kiwix.org/release
|
||||
fi
|
||||
|
||||
DIST_ZIM_ARCHIVES=$(find $DIST_ZIM_ARCHIVES_DIR -type f)
|
||||
if [[ "x$DIST_ZIM_ARCHIVES" != "x" ]]
|
||||
then
|
||||
scp -vrp -i ${SSH_KEY} \
|
||||
${DIST_ZIM_ARCHIVES} \
|
||||
nightlybot@download.openzim.org:/var/www/download.openzim.org/release
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user