aboutsummaryrefslogtreecommitdiffstats
path: root/centos.sh
blob: 27f601cd367ca97cac25eb6e09576e40b79048bf (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
27
28
#!/usr/bin/env sh

set -e
#set -x

NAME=$1
DIST=centos
RELEASE=7
ARCH=amd64
# We don't install Erlang because it's complicated on CentOS.
# We will instead use the Erlang versions built with kerl.
PACKAGES="curl ncurses-devel openssl-devel zsh vim sudo git make \
	autoconf automake gcc golang glide rsync groff psmisc parallel \
	subversion mercurial p7zip p7zip-plugins unzip"

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

buildkite_stop $DIST
lxc_destroy
lxc_create $DIST $RELEASE $ARCH
lxc_wait_for_ip
yum_upgrade
yum_install_epel
yum_install $PACKAGES
buildkite_install $DIST $BUILDKITE_TOKEN
ssh_copy_host_key
ssh_copy_host_key buildkite-agent /var/lib/buildkite-agent
lxc_restart