Compare commits
3 Commits
d53fd90185
...
testing-is
Author | SHA1 | Date | |
---|---|---|---|
723996aa8e
|
|||
07fec4262e
|
|||
fb9de15de0
|
58
LICENSE
58
LICENSE
@@ -1,27 +1,31 @@
|
||||
# http://www.wtfpl.net/about/
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
|
||||
ANINIX ADDENDUM
|
||||
|
||||
Trademark Pending 2017 (https://aninix.net/irc/)
|
||||
|
||||
The "AniNIX" name and |> logo is trademark-pending as of 2017. All
|
||||
AniNIX materials can be reproduced and re-used, though you must
|
||||
contact the admins of the network to get written permission to use
|
||||
the AniNIX name.
|
||||
|
||||
Attribution is appreciated for other materials but not legally
|
||||
required or necessary.
|
||||
# http://www.wtfpl.net/about/
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
|
||||
ANINIX ADDENDUM
|
||||
|
||||
Trademark 2017 (https://aninix.net/)
|
||||
|
||||
The "AniNIX" name and |> logo are trademarked as of 2017/11/21.
|
||||
AniNIX materials may be reproduced and re-used (though you must
|
||||
contact the admins of the network to get written permission to use
|
||||
the AniNIX name or logo) so long as such reproduction or re-use
|
||||
does not inhibit the original AniNIX use of the same.
|
||||
|
||||
Attribution is appreciated for other materials but not legally
|
||||
required or necessary.
|
||||
|
||||
"AniNIX" trademark serial: 87177883
|
||||
|> Logo trademark serial: 87177887
|
||||
|
7
Makefile
7
Makefile
@@ -21,7 +21,7 @@ install: ${list} MaatIcon.png
|
||||
for i in ${systemdList}; do install -m 0644 -o root $$i ${pkgdir}/usr/lib/systemd/system; done
|
||||
|
||||
clean:
|
||||
cat .gitignore | sudo xargs rm -Rf
|
||||
git clean -fdX
|
||||
|
||||
uninstall:
|
||||
for i in ${list}; do rm -Rf ${installDir}/$$i; done
|
||||
@@ -29,7 +29,10 @@ uninstall:
|
||||
rmdir -p ${pkgdir}${serverRoot}/src
|
||||
rmdir -p ${pkgdir}${serverRoot}/pkg
|
||||
|
||||
test: clean
|
||||
test:
|
||||
./maat -h | grep -c Usage 1>/dev/null
|
||||
|
||||
extendedtest: clean
|
||||
sudo ./maat -u $$USER -T
|
||||
test -d src
|
||||
test -d src/ascii-invaders
|
||||
|
2
PKGBUILD
2
PKGBUILD
@@ -28,7 +28,7 @@ validpgpkeys=()
|
||||
|
||||
prepare() {
|
||||
git pull
|
||||
make -C .. test && make -C .. clean
|
||||
make -C .. test
|
||||
}
|
||||
|
||||
build() {
|
||||
|
20
maat
20
maat
@@ -83,7 +83,7 @@ function BuildRepo() {
|
||||
git clone "$repo"
|
||||
fi
|
||||
cd "$repodir"
|
||||
git reset --hard origin &>/dev/null
|
||||
git clean -fdX
|
||||
output="$(git pull 2>&1)"
|
||||
if [ -n "$incremental" ] && [ $( echo "$output" | grep -c 'Already up to date.' ) -eq 1 ]; then
|
||||
return;
|
||||
@@ -150,12 +150,26 @@ timeout="90s"
|
||||
# Stat tracking
|
||||
starttime=`date +%s`
|
||||
|
||||
function usage() {
|
||||
### Show helptext
|
||||
# param retcode: what to exit
|
||||
retcode="$1"
|
||||
cat <<EOM
|
||||
Usage: $0
|
||||
$0 -T # Extended testing
|
||||
$0 -b homedir -c aurconf -u user -t timeout
|
||||
Add -s to skip patching or -v for verbosity.
|
||||
EOM
|
||||
exit $retcode
|
||||
}
|
||||
|
||||
|
||||
# Parse arguments
|
||||
while getopts 'b:c:hil:st:Tu:v' OPTION; do
|
||||
case "${OPTION}" in
|
||||
b) homedir="${OPTARG}" ;;
|
||||
c) aurconf="${OPTARG}" ;;
|
||||
h) Usage; exit 0 ;;
|
||||
h) usage; exit 0 ;;
|
||||
i) incremental=1 ;;
|
||||
l) cmdstring="$0"; for arg in $@; do if [ "$arg" != "-l" ] && [ "$arg" != "${OPTARG}" ]; then cmdstring="$cmdstring \"${arg}\""; fi; done; exec /bin/bash -c "$cmdstring | tee -a \"${OPTARG}\""; ;;
|
||||
s) skipPatching=1 ;;
|
||||
@@ -163,7 +177,7 @@ while getopts 'b:c:hil:st:Tu:v' OPTION; do
|
||||
T) export MAATTESTINGVAR=1; exec $0 -l ./testing.log -u "$deprivuser" -v -s -c <(echo https://aur.archlinux.org/ascii-invaders.git) -b . ;;
|
||||
u) deprivuser="${OPTARG}" ;;
|
||||
v) set -x ;;
|
||||
*) usage; exit 1 ;;
|
||||
*) echo "Internal GitOps CI/CD Pipeline"; usage 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
3
precommit-hooks/extendedtest
Normal file
3
precommit-hooks/extendedtest
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
make extendedtest
|
Reference in New Issue
Block a user