pmaports/.gitlab-ci/move_logs.sh
Oliver Smith 0d5e2fae31
Add test cases and .gitignore
Copy all test cases from the pmbootstrap repository, that are actually
testing the aports. They were all adjusted to work nicely in this
repository, together with a brand new set of gitlab-ci configs.

This also includes the changes from this merge request, that had a
better detection of changed packages:
<https://gitlab.com/postmarketOS/pmbootstrap/merge_requests/1621>
2018-09-04 08:46:17 +02:00

16 lines
371 B
Bash
Executable file

#!/bin/sh -e
# Copyright 2018 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
if [ -z "$1" ]; then
echo "usage: $(basename $0) \$CI_PROJECT_DIR"
exit 1
fi
for log in \
/home/pmos/.local/var/pmbootstrap/log.txt \
/home/pmos/.local/var/pmbootstrap/log_testsuite_pmaports.txt \
/home/pmos/.config/pmbootstrap.cfg \
; do
[ -e "$log" ] && mv "$log" "$1"
done