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








                 
                                                                       
                                                                          
                                                                            





                                     
                      





                                        
                        
                 
                                                       
           
#!/usr/bin/env sh

set -e
#set -x

NAME=$1
DIST=archlinux
RELEASE=current
ARCH=amd64
PACKAGES="cronie openssh openssl-1.0 zsh vim sudo erlang-nox git make \
	autoconf automake gcc go dep mercurial subversion rsync parallel \
	sdl2 sdl2_image sdl2_ttf gnu-netcat cppcheck clang p7zip unzip wget"

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

buildkite_stop $DIST
lxc_destroy
lxc_create $DIST $RELEASE $ARCH
#archlinux_fix_network
lxc_wait_for_ip
pacman_upgrade
pacman_install $PACKAGES
openssl_fix_10
archlinux_enable_cron
buildkite_install $DIST $BUILDKITE_TOKEN
openssl_fix_10_buildkite
ssh_copy_host_key
ssh_copy_host_key buildkite-agent /home/buildkite-agent
lxc_restart