aboutsummaryrefslogtreecommitdiffstats
path: root/ubuntu.sh
blob: e19b4a12cf8e20bc8a9745d2f597698ae2c377fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env sh

set -e
#set -x

NAME=$1
DIST=ubuntu
RELEASE=disco
ARCH=amd64
PACKAGES="curl libssl-dev libncurses5-dev zsh vim sudo erlang-nox git \
	make autoconf automake gcc golang go-dep rsync \
	libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev cppcheck clang clang-tools \
	groff-base psmisc p7zip-full unzip subversion mercurial parallel"

for f in ci.d/*; do source "$f"; done

buildkite_stop $DIST
lxc_destroy
lxc_create $DIST $RELEASE $ARCH
lxc_wait_for_ip
apt_get_upgrade
apt_get_install $PACKAGES
buildkite_install $DIST $BUILDKITE_TOKEN
ssh_copy_host_key
ssh_copy_host_key buildkite-agent /var/lib/buildkite-agent
lxc_restart