Remove arch-travis and directly use docker

This commit is contained in:
Filippo Squillace 2022-12-18 20:40:41 +00:00 committed by Filippo Squillace
parent c052e660ee
commit fab5b0df2e
5 changed files with 45 additions and 67 deletions

15
ci/build_image.sh Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -ex
pacman -Sy --noconfirm sudo
# Create a travis user
echo "travis ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/travis
chmod 'u=r,g=r,o=' /etc/sudoers.d/travis
groupadd --gid "2000" "travis"
useradd --create-home --uid "2000" --gid "2000" --shell /usr/bin/false "travis"
# Here do not make any validation (-n) because it will be done later on in the Ubuntu host directly
cd /build
runuser -u travis -- /build/bin/junest build -n