Commit 3632494c authored by helmo's avatar helmo

Merge commit 'feature/gitlab-testing' into 7.x-3.x

Publish debian packages to OUR unstable repo.
Add stest for Debian 9 - Stretch ... still failing.
parents 613067be 542310b9
......@@ -6,6 +6,7 @@ before_script:
stages:
- build
- test
- publish
# Stage "build"
build:deb:
......@@ -19,6 +20,9 @@ build:deb:
- dpkg-buildpackage
- mkdir build
- mv -v ../aegir3*.deb build/
- mv -v ../aegir3*.tar.gz build/
- mv -v ../aegir3*.dsc build/
- mv -v ../aegir3*.changes build/
# The files which are to be made available in GitLab as artifacts.
artifacts:
......@@ -32,6 +36,9 @@ test:debian-jessie-aegir3-apt:
image: debian:jessie
dependencies:
- build:deb
only:
- 7.x-3.x
- triggers
before_script:
- apt-get update
......@@ -42,11 +49,33 @@ test:debian-jessie-aegir3-apt:
script: "scripts/ci-aegir-dev-install-apt-debian.sh"
test:debian-stretch-aegir3-apt:
stage: test
image: debian:stretch
allow_failure: true
dependencies:
- build:deb
only:
- 7.x-3.x
- triggers
before_script:
- 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
script: "scripts/ci-aegir-dev-install-apt-debian9.sh"
test:ubuntu-xenial-aegir3-apt:
stage: test
image: ubuntu:xenial
dependencies:
- build:deb
only:
- 7.x-3.x
- triggers
before_script:
- apt-get update
......@@ -57,3 +86,30 @@ test:ubuntu-xenial-aegir3-apt:
script: "scripts/ci-aegir-dev-install-apt-ubuntu.sh"
publish:unstable-repo:
stage: publish
dependencies:
- build:deb
allow_failure: true
image: ruby:2.1
before_script:
# install ssh-agent
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# run ssh-agent
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- ls -la /.dockerenv
- echo "$SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts
- cat ~/.ssh/known_hosts
script:
- ls -lah build/*
- scp build/* ci@aegir0.aegir.coop:/var/www/repos/incoming/
# reprepro should pick this up in seconds and update the repository index.
#
# Install Aegir debian packages located in the 'build/' directory.
# These are provided by the GitLab CI build stage.
#
# This script is tuned for Debian 9 - Stretch.
#
sudo apt-get update
echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections
#echo "debconf debconf/priority select critical" | debconf-set-selections
echo mysql-server-5.7 mysql-server/root_password password PASSWORD | debconf-set-selections
echo mysql-server-5.7 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 aegir@example.com
aegir3-hostmaster aegir/site string aegir.example.com
postfix postfix/main_mailer_type select Local only
EOF
sudo apt-get install --yes mysql-server phpi7.0-mysql php7.0-cli
set -x
sudo DPKG_DEBUG=developer dpkg --install build/aegir3_*.deb build/aegir3-provision*.deb build/aegir3-hostmaster*.deb
sudo apt-get install --fix-broken --yes
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