Use docker to build native_dyn.

As we want to use qt and packages are available only since ubuntu artful, we
need to use docker because travis-ci is ubuntu trusty.

We could also build qt, but it takes too many time and travis timeout.
This commit is contained in:
Matthieu Gautier
2018-06-05 22:47:48 +02:00
parent 312e734678
commit ded38889cf
4 changed files with 91 additions and 10 deletions

View File

@ -31,7 +31,7 @@ NIGHTLY_ZIM_ARCHIVES_DIR = HOME/'NIGHTLY_ZIM_ARCHIVES'/NIGHTLY_DATE
RELEASE_ZIM_ARCHIVES_DIR = HOME/'RELEASE_ZIM_ARCHIVES'
DIST_KIWIX_ARCHIVES_DIR = HOME/'DIST_KIWIX_ARCHIVES'
DIST_ZIM_ARCHIVES_DIR = HOME/'DIST_ZIM_ARCHIVES'
SSH_KEY = Path(environ['TRAVIS_BUILD_DIR'])/'travis'/'travisci_builder_id_key'
SSH_KEY = environ.get('TRAVISCI_SSH_KEY', Path(environ['TRAVIS_BUILD_DIR'])/'travis'/'travisci_builder_id_key')
# We have build everything. Now create archives for public deployement.
BINARIES = {
@ -162,7 +162,9 @@ def make_deps_archive(target, full=False):
def scp(what, where):
print_message("Copy {} to {}", what, where)
command = ['scp', '-i', str(SSH_KEY), str(what), str(where)]
command = ['scp', '-o', 'StrictHostKeyChecking=no',
'-i', str(SSH_KEY),
str(what), str(where)]
subprocess.check_call(command)

View File

@ -8,14 +8,14 @@ RELEASE_KIWIX_ARCHIVES_DIR=${HOME}/RELEASE_KIWIX_ARCHIVES
RELEASE_ZIM_ARCHIVES_DIR=${HOME}/RELEASE_ZIM_ARCHIVES
DIST_KIWIX_ARCHIVES_DIR=${HOME}/DIST_KIWIX_ARCHIVES
DIST_ZIM_ARCHIVES_DIR=${HOME}/DIST_ZIM_ARCHIVES
SSH_KEY=travis/travisci_builder_id_key
SSH_KEY=${TRAVISCI_SSH_KEY:-travis/travisci_builder_id_key}
if [[ "$TRAVIS_EVENT_TYPE" = "cron" ]]
then
scp -vrp -i ${SSH_KEY} \
scp -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
${NIGHTLY_KIWIX_ARCHIVES_DIR} \
nightlybot@download.kiwix.org:/var/www/download.kiwix.org/nightly
scp -vrp -i ${SSH_KEY} \
scp -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
${NIGHTLY_ZIM_ARCHIVES_DIR} \
nightlybot@download.kiwix.org:/var/www/download.openzim.org/nightly
@ -27,7 +27,7 @@ then
for archive in $RELEASE_ARCHIVES
do
subdir=$(basename $(dirname $archive))
scp -vrp -i ${SSH_KEY} \
scp -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
${archive} \
nightlybot@download.kiwix.org:/var/www/download.kiwix.org/release/${subdir}
done
@ -39,7 +39,7 @@ then
for archive in $RELEASE_ARCHIVES
do
subdir=$(basename $(dirname $archive))
scp -vrp -i ${SSH_KEY} \
scp -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
${archive} \
nightlybot@download.openzim.org:/var/www/download.openzim.org/release/${subdir}
done
@ -51,7 +51,7 @@ then
for archive in $DIST_KIWIX_ARCHIVES
do
subdir=$(basename $(dirname $archive))
scp -vrp -i ${SSH_KEY} \
scp -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
${archive} \
nightlybot@download.kiwix.org:/var/www/download.kiwix.org/release/${subdir}
done
@ -63,7 +63,7 @@ then
for archive in $DIST_ZIM_ARCHIVES
do
subdir=$(basename $(dirname $archive))
scp -vrp -i ${SSH_KEY} \
scp -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
${archive} \
nightlybot@download.openzim.org:/var/www/download.openzim.org/release/${subdir}
done