~fginther/+junk/kubuntu_build_scripts

« back to all changes in this revision

Viewing changes to add_coverage_and_build.sh

  • Committer: Francis Ginther
  • Date: 2015-02-18 20:54:23 UTC
  • Revision ID: francis.ginther@canonical.com-20150218205423-amuykha5ands9dne
Use a SILO variable to allow for optionally omitting the silo name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
1
2
set -ex
2
3
 
 
4
SILO={{ silo }}
3
5
apt-get update -y
4
6
apt-get install python-software-properties -y --force-yes
5
7
apt-get install software-properties-common -y --force-yes
6
 
apt-add-repository -s -y {{ silo }}
 
8
if [ -n "${SILO}" ]; then
 
9
    apt-add-repository -s -y "${SILO}"
 
10
fi
7
11
#get missing "Launchpad PPA for gcovr maintainers" gpg key
8
12
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys  C012599D727CC694
9
13
apt-get update -y