mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-12-23 12:07:45 +00:00
Additional cleanup after merge
This commit is contained in:
parent
0e94d30c3e
commit
e03322250e
13
Makefile
13
Makefile
@ -22,11 +22,6 @@ test-x86: build-x86
|
||||
cd tests && ./test.sh $(DOCKER_TAG)
|
||||
cd tests && ./test-pre-scripts.sh $(DOCKER_TAG)
|
||||
|
||||
.PHONY: test-arm
|
||||
test-arm: build-arm
|
||||
cd tests && .test.sh $(DOCKER_TAG):raspbian
|
||||
cd tests && ./test-pre-scripts.sh $(DOCKER_TAG):raspbian
|
||||
|
||||
.PHONY: test-all
|
||||
test-all: test-x86 test-arm
|
||||
|
||||
@ -34,10 +29,6 @@ test-all: test-x86 test-arm
|
||||
test-s3-x86:
|
||||
cd tests && ./test-s3.sh ubuntu
|
||||
|
||||
.PHONY: test-s3-arm
|
||||
test-s3-arm:
|
||||
cd tests && ./test-s3.sh raspbian
|
||||
|
||||
.PHONY: test-s3-all
|
||||
test-s3-all: test-s3-x86 test-s3-arm
|
||||
|
||||
@ -45,10 +36,6 @@ test-s3-all: test-s3-x86 test-s3-arm
|
||||
shell-x86: build-x86
|
||||
docker run --rm -it $(DOCKER_TAG) bash
|
||||
|
||||
.PHONY: shell-arm
|
||||
shell-arm: build-arm
|
||||
docker run --rm -it $(DOCKER_TAG):raspbian bash
|
||||
|
||||
.PHONY: shell
|
||||
shell: shell-x86
|
||||
|
||||
|
@ -8,6 +8,7 @@ if [ "$IN_CONTAINER" != "true" ] ; then
|
||||
docker run --rm \
|
||||
-e IN_CONTAINER=true \
|
||||
-e SKIP_ON_START=true \
|
||||
-e RESTIC_PASSWORD="Correct.Horse.Battery.Staple" \
|
||||
-v "$(pwd)/test-pre-scripts.sh:/test.sh" \
|
||||
-v "$(pwd)/test-pre-scripts:/scripts" \
|
||||
$image \
|
||||
@ -28,6 +29,9 @@ else
|
||||
touch /data/test_database.db
|
||||
sqlite3 /data/test_database.db < /scripts/create-test-data.sql
|
||||
|
||||
echo "Fake a start and init repo"
|
||||
CRON_SCHEDULE="" /start.sh
|
||||
|
||||
echo "Making backup..."
|
||||
/backup.sh
|
||||
|
||||
@ -41,7 +45,7 @@ else
|
||||
test -f /data/test_database.db && exit 1 || echo "Gone"
|
||||
|
||||
echo "Restore backup..."
|
||||
/restore.sh
|
||||
/restore.sh latest
|
||||
|
||||
echo "Verify restored files exist..."
|
||||
test -f /data/test_database.db
|
||||
@ -67,5 +71,5 @@ else
|
||||
|
||||
echo "Verify restore with incorrect passphrase fails..."
|
||||
echo "Fail to restore backup..."
|
||||
PASSPHRASE=Incorrect.Mule.Solar.Paperclip /restore.sh && exit 1 || echo "OK"
|
||||
RESTIC_PASSWORD=Incorrect.Mule.Solar.Paperclip /restore.sh latest && exit 1 || echo "OK"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user