aboutsummaryrefslogblamecommitdiffstats
path: root/centos.sh
blob: 20d3678d4d6a34fd1c0e0d2daf1900f08ff05f53 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                             
                                                                  
                                                                        
                                                            







                                     
                




                                                          
#!/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 wget"

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