Commit bedc16b1 authored by helmo's avatar helmo
Browse files

Add test: Upgrade Aegir stable to unstable

parent 542310b9
......@@ -49,6 +49,29 @@ test:debian-jessie-aegir3-apt:
script: "scripts/"
# Upgrade the latest stable Aegir to our unstable repo.
stage: test
image: debian:jessie
- build:deb
- apt-get update
# Avoid ERROR: invoke-rc.d: policy-rc.d denied execution of start.
- echo "#!/bin/sh" > /usr/sbin/policy-rc.d
- echo "exit 0" >> /usr/sbin/policy-rc.d
- apt-get install --yes sudo curl
- "scripts/"
# upgrade to the latest version from the unstable repo.
- rm -v /etc/apt/sources.list.d/aegir-stable.list
- echo "deb unstable main" | sudo tee -a /etc/apt/sources.list.d/aegir-unstable.list
- sudo apt-get update
- sudo apt-get --yes upgrade
stage: test
image: debian:stretch
# Install Aegir debian packages located in the projects stable repository.
# This script is tuned for Debian 8 - Jessie.
echo "deb stable main" | sudo tee -a /etc/apt/sources.list.d/aegir-unstable.list
curl | sudo apt-key add -
sudo apt-get update
echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections
echo mysql-server-5.5 mysql-server/root_password password PASSWORD | debconf-set-selections
echo mysql-server-5.5 mysql-server/root_password_again password PASSWORD | debconf-set-selections
debconf-set-selections <<EOF
aegir3-hostmaster aegir/db_password string PASSWORD
aegir3-hostmaster aegir/db_password seen true
aegir3-hostmaster aegir/db_user string root
aegir3-hostmaster aegir/db_host string localhost
aegir3-hostmaster aegir/email string
aegir3-hostmaster aegir/site string
postfix postfix/main_mailer_type select Local only
sudo DPKG_DEBUG=developer apt-get install --yes aegir3 mysql-server
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