2017-06-29 01:12:49 +00:00
|
|
|
DOCKER_TAG ?= docker-duplicity-cron
|
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: default
|
2017-06-29 01:12:49 +00:00
|
|
|
default: build-x86
|
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: test
|
2017-07-30 19:18:12 +00:00
|
|
|
test: test-x86
|
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: build-x86
|
2017-06-29 01:12:49 +00:00
|
|
|
build-x86:
|
2019-08-05 23:22:37 +00:00
|
|
|
docker build -f ./Dockerfile -t $(DOCKER_TAG):ubuntu .
|
2017-06-29 01:12:49 +00:00
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: build-arm
|
2017-06-29 01:12:49 +00:00
|
|
|
build-arm:
|
2019-08-05 23:22:37 +00:00
|
|
|
docker build -f ./Dockerfile.armhf -t $(DOCKER_TAG):raspbian .
|
2017-06-29 01:12:49 +00:00
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: build-all
|
2017-06-29 01:12:49 +00:00
|
|
|
build-all: build-x86 build-arm
|
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: test-x86
|
2017-06-29 01:12:49 +00:00
|
|
|
test-x86: build-x86
|
2018-05-13 17:31:31 +00:00
|
|
|
cd tests && ./test.sh $(DOCKER_TAG):ubuntu
|
2018-09-28 00:32:55 +00:00
|
|
|
cd tests && ./test-pre-scripts.sh $(DOCKER_TAG):ubuntu
|
2017-06-29 01:12:49 +00:00
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: test-arm
|
2017-06-29 01:12:49 +00:00
|
|
|
test-arm: build-arm
|
2019-01-28 19:58:58 +00:00
|
|
|
cd tests && ./test.sh $(DOCKER_TAG):raspbian
|
2018-09-28 00:32:55 +00:00
|
|
|
cd tests && ./test-pre-scripts.sh $(DOCKER_TAG):raspbian
|
2017-06-29 01:12:49 +00:00
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: test-all
|
2017-06-29 01:12:49 +00:00
|
|
|
test-all: test-x86 test-arm
|
2017-07-17 02:37:03 +00:00
|
|
|
|
2017-11-16 17:23:03 +00:00
|
|
|
.PHONY: test-s3-x86
|
|
|
|
test-s3-x86:
|
2019-08-06 01:07:53 +00:00
|
|
|
cd tests && ./test-s3.sh Dockerfile
|
2017-11-16 17:23:03 +00:00
|
|
|
|
|
|
|
.PHONY: test-s3-arm
|
|
|
|
test-s3-arm:
|
2019-08-06 01:07:53 +00:00
|
|
|
cd tests && ./test-s3.sh Dockerfile.armhf
|
2017-11-16 17:23:03 +00:00
|
|
|
|
|
|
|
.PHONY: test-s3-all
|
|
|
|
test-s3-all: test-s3-x86 test-s3-arm
|
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: shell-x86
|
2017-07-17 02:37:03 +00:00
|
|
|
shell-x86: build-x86
|
|
|
|
docker run --rm -it $(DOCKER_TAG):ubuntu bash
|
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: shell-arm
|
2017-07-17 02:37:03 +00:00
|
|
|
shell-arm: build-arm
|
|
|
|
docker run --rm -it $(DOCKER_TAG):raspbian bash
|
|
|
|
|
2017-11-15 19:02:12 +00:00
|
|
|
.PHONY: shell
|
2017-07-17 02:37:03 +00:00
|
|
|
shell: shell-x86
|
2017-11-16 17:23:03 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
docker-compose -f docker-compose-test-s3.yml down -v
|