Commit 37a01fc6 authored by Julien Muchembled's avatar Julien Muchembled

build-rina: cache downloads

This is possible because this SR is only supposed to be run by a test node:
in this case, the owner of the software is the same as for the instance.

Buildout 2.x is required for automatic creation of the 'download-cache' folder.
parent 27ccd773
......@@ -4,6 +4,7 @@ extends =
parts =
debuild-rina-tools
test-rina
download-cache = download-cache
[vm-run-base]
smp = 4
......@@ -93,6 +94,7 @@ finalize =
[test-rina]
<= vm-run-base
rina-tools-deps
mount.download-cache = ${buildout:download-cache}
mount.rina = ${irati-stack:location}
mount.slapos = ${:_profile_base_location_}/../..
mount.slapos.package = ${slapos.package-repository:location}
......@@ -106,6 +108,7 @@ install =
[buildout]
extends = /mnt/slapos/software/hellorina/software.cfg
develop = /mnt/slapos
download-cache = /mnt/download-cache
[slapos-cookbook-develop]
recipe =
setup =
......
......@@ -94,6 +94,7 @@ relative-paths = true
extends = {{parameter_dict['profile_base_location']}}/build.cfg
develop-eggs-directory = {{buildout['develop-eggs-directory']}}
eggs-directory = {{buildout['eggs-directory']}}
download-cache = {{parameter_dict['download-cache']}}
[vm-run-base]
environment =
......
......@@ -6,6 +6,7 @@ extends =
parts =
slapos-cookbook
template
download-cache = download-cache
[template]
recipe = slapos.recipe.template:jinja2
......@@ -38,6 +39,7 @@ template = inline:
[runTestSuite-parameters]
environment = {{dumps(environment)}}
vm = {{dumps(vm)}}
download-cache = ${buildout:download-cache}
runTestSuite_py = ${buildout:bin-directory}/${runTestSuite_py:interpreter}
profile_base_location = ${:_profile_base_location_}
irati_stack = ${irati-stack:location}
......@@ -71,3 +73,7 @@ packages +=
git ca-certificates python
# biggest and common build-deps for RINA
dh-autoreconf pkg-config doxygen maven xmlto
[versions]
zc.buildout = 2.5.2+slapos005
zc.recipe.egg = 2.0.3+slapos002
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment