blob: e18c66ed48fc30e12e468fb260f92f872f545076 [file] [log] [blame]
Sean Dague0392a102013-07-31 13:07:45 -04001# lib/infra
2#
3# Functions to install infrastructure projects needed by other projects
4# early in the cycle. We need this so we can do things like gate on
5# requirements as a global list
6
7# Dependencies:
Adam Spiers6a5aa7c2013-10-24 11:27:02 +01008#
9# - ``functions`` file
Sean Dague0392a102013-07-31 13:07:45 -040010
11# ``stack.sh`` calls the entry points in this order:
12#
Adam Spiers6a5aa7c2013-10-24 11:27:02 +010013# - install_infra
Sean Dague0392a102013-07-31 13:07:45 -040014
15# Save trace setting
16XTRACE=$(set +o | grep xtrace)
17set +o xtrace
18
19
20# Defaults
21# --------
22PBR_DIR=$DEST/pbr
23REQUIREMENTS_DIR=$DEST/requirements
24
25# Entry Points
26# ------------
27
Sean Dague0392a102013-07-31 13:07:45 -040028# install_infra() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +110029function install_infra {
Sean Dague0392a102013-07-31 13:07:45 -040030 # bring down global requirements
31 git_clone $REQUIREMENTS_REPO $REQUIREMENTS_DIR $REQUIREMENTS_BRANCH
32
33 # Install pbr
34 git_clone $PBR_REPO $PBR_DIR $PBR_BRANCH
Sean Dague099e5e32014-03-31 10:35:43 -040035 setup_install $PBR_DIR
Sean Dague0392a102013-07-31 13:07:45 -040036}
37
38# Restore xtrace
39$XTRACE
40
Adam Spiers6a5aa7c2013-10-24 11:27:02 +010041# Tell emacs to use shell-script-mode
42## Local variables:
43## mode: shell-script
44## End: