aboutsummaryrefslogblamecommitdiffstats
path: root/debian.sh
blob: 5fc28d1c293c01870d7d4c47d51e85d8886adb6f (plain) (tree)
1
2
3
4
5
6
7
8
9






                 
              
          

                                                           
                                                                     

                                                                            
                                                                                  
                              












                                                          
#!/usr/bin/env sh

set -e
#set -x

NAME=$1
DIST=debian
RELEASE=buster
ARCH=amd64
# @todo Replace golang-glide with go-dep, but this requires
# a newer version of Debian?
PACKAGES="gnupg apt-transport-https curl libssl-dev libncurses5-dev \
	zsh vim sudo erlang-nox erlang-dev git make autoconf automake gcc \
	golang golang-glide rsync parallel mercurial subversion p7zip-full \
	libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev cppcheck clang clang-tools \
	groff-base 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
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