5
# The PPA you want to install as a base for the upgrade test.
6
# This should probably be one of the stable PPAs.
7
BASE_PPA="ppa:sloecode/stable-testing"
9
# The PPA you want to upgrade to:
10
DAILY_PPA="ppa:sloecode"
12
###############################################################################
13
# Nothing to see below this line:
14
###############################################################################
16
# set selection answers:
17
debconf-set-selections ./debconf_answers
19
# TODO: if anyone finds a better way of doing this, please be my guest and fix
21
dpkg -l sloecode | grep ii
24
if [[ $sloecode_installed ]]; then
25
echo "Sloecode package is already installed. Purging it before running tests."
26
sudo apt-get remove --purge sloecode
29
sudo rm -rf /etc/apt/sources.list.d/sloecode*
31
echo "Adding base ppa ($BASE_PPA)."
32
sudo add-apt-repository -y $BASE_PPA
33
echo "Updating package lists."
35
echo "Installing base sloecode package."
36
sudo apt-get install -y sloecode
37
echo "Adding daily builds ppa ($DAILY_PPA)."
38
sudo add-apt-repository -y $DAILY_PPA
39
echo "Updating package lists."
41
echo "Installing base sloecode package."
42
sudo apt-get install -y sloecode