add check-aur.sh to check if the aur package works
intended to be used in CI
This commit is contained in:
parent
743abea8bf
commit
8b1f3a145d
4 changed files with 24 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@ SteamAuth/SteamAuth/packages/
|
||||||
test_maFiles/
|
test_maFiles/
|
||||||
|
|
||||||
*.deb
|
*.deb
|
||||||
|
*.tar.gz
|
||||||
|
|
||||||
target/
|
target/
|
||||||
aur/
|
aur/
|
||||||
|
|
15
scripts/check-aur.sh
Executable file
15
scripts/check-aur.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Performs a test install of the package from the AUR. If the package fails to install, there should be a non-zero exit code.
|
||||||
|
# Intended for use with CI.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd scripts/docker/arch/
|
||||||
|
tar -cvf arch-docker.tar.gz .
|
||||||
|
docker image build -t steamguard-cli-archlinux-builder - < arch-docker.tar.gz
|
||||||
|
rm arch-docker.tar.gz
|
||||||
|
|
||||||
|
docker run -it --rm steamguard-cli-archlinux-builder /bin/bash -c "./install.sh steamguard-cli-git && steamguard-cli --version"
|
||||||
|
|
||||||
|
docker image rm steamguard-cli-archlinux-builder:latest
|
3
scripts/docker/arch/Dockerfile
Normal file
3
scripts/docker/arch/Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
FROM greyltc/archlinux-aur:yay
|
||||||
|
|
||||||
|
COPY install.sh /install.sh
|
5
scripts/docker/arch/install.sh
Executable file
5
scripts/docker/arch/install.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PACKAGE="$1"
|
||||||
|
echo "Installing $PACKAGE"
|
||||||
|
sudo -u ab -D~ bash -c "yay -Syu --removemake --needed --noprogressbar --noconfirm $PACKAGE"
|
Loading…
Reference in a new issue