diff options
author | Chad Smith <chad.smith@canonical.com> | 2017-06-14 17:11:43 -0600 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2017-06-14 17:11:43 -0600 |
commit | b23d9d7c5c112612dbaaf8c8371c9e735500b2eb (patch) | |
tree | 2560246463557fdf73720558c0d996732e84d5b5 /tools/run-centos | |
parent | 55a006afca73633c607c537dee62097e85011443 (diff) | |
download | vyos-cloud-init-b23d9d7c5c112612dbaaf8c8371c9e735500b2eb.tar.gz vyos-cloud-init-b23d9d7c5c112612dbaaf8c8371c9e735500b2eb.zip |
ci deps: Add --test-distro to read-dependencies to install all deps
read-dependencies now takes --test-distro param to indicate we want to install
all system package depenencies to allow for testing and building for our
continous integration environment. It allows us to install all needed deps on
a fresh system with:
python3 ./tools/read-dependencies --distro ubuntu --test-distro [--dry-run].
Additionally read-dependencies now looks at what version of python is running
the script (py2 vs p3) and opts to install python 2 or 3 system deps
respectively. This behavior can still be overridden with
python3 ./tools/read-dependencies ... --python-version 2.
There are also some distro-specific packaging and test dependencies, like
devscripts, tox and libssl-dev on debian or ubuntu. Those pkg dependencies
have now been broken out from common pkg deps to avoid trying to install them
on centos/redhat/suse.
Diffstat (limited to 'tools/run-centos')
-rwxr-xr-x | tools/run-centos | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/run-centos b/tools/run-centos index 99ba6be0..b10e3bc4 100755 --- a/tools/run-centos +++ b/tools/run-centos @@ -221,10 +221,7 @@ main() { } inside_as_cd "$name" root "$cdir" \ - ./tools/read-dependencies \ - --requirements-file=requirements.txt \ - --requirements-file=test-requirements.txt \ - --distro=centos --install || { + ./tools/read-dependencies --distro=centos --test-distro || { errorrc "FAIL: failed to install dependencies with read-dependencies" return } |