mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
We may end in a deadlock if we publish dependencies archives at the end of the compilation and if all compilation succeed. For example project B may depend on project A. If we change the project A API and the project B code to reflect the API change and merge A' API in master and create a PR for B, the PR for B will need a new archive with new project A' API. However, as B' master fails with new A, the whole compilation fails and nothing is publish. So B'PR is never compiled successfully. By publish the archives as soons as generated, the A' new API will be published and B'PR will compile correctly, even if master fails. Will be able to merge B'PR without bypassing travisCI.
15 lines
356 B
Bash
Executable File
15 lines
356 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
NIGHTLY_ARCHIVES_DIR=${HOME}/NIGHTLY_ARCHIVES
|
|
SSH_KEY=travis/travisci_builder_id_key
|
|
|
|
NIGHTLY_ARCHIVES=$(find $NIGHTLY_ARCHIVES_DIR -type f)
|
|
if [[ "x$NIGHTLY_ARCHIVES" != "x" ]]
|
|
then
|
|
scp -vrp -i ${SSH_KEY} \
|
|
${NIGHTLY_ARCHIVES} \
|
|
nightlybot@download.kiwix.org:/var/www/download.kiwix.org/nightly/$(date +%Y-%m-%d)
|
|
fi
|