No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. DOCKER_TAG ?= docker-duplicity-cron
  2. .PHONY: default
  3. default: build-x86
  4. .PHONY: test
  5. test: test-x86
  6. .PHONY: build-x86
  7. build-x86:
  8. docker build -f ./Dockerfile.ubuntu -t $(DOCKER_TAG):ubuntu .
  9. .PHONY: build-arm
  10. build-arm:
  11. docker build -f ./Dockerfile.raspbian -t $(DOCKER_TAG):raspbian .
  12. .PHONY: build-all
  13. build-all: build-x86 build-arm
  14. .PHONY: test-x86
  15. test-x86: build-x86
  16. cd tests && ./test.sh $(DOCKER_TAG):ubuntu
  17. cd tests && ./test-pre-scripts.sh $(DOCKER_TAG):ubuntu
  18. .PHONY: test-arm
  19. test-arm: build-arm
  20. cd tests && ./test.sh $(DOCKER_TAG):raspbian
  21. cd tests && ./test-pre-scripts.sh $(DOCKER_TAG):raspbian
  22. .PHONY: test-all
  23. test-all: test-x86 test-arm
  24. .PHONY: test-s3-x86
  25. test-s3-x86:
  26. cd tests && ./test-s3.sh ubuntu
  27. .PHONY: test-s3-arm
  28. test-s3-arm:
  29. cd tests && ./test-s3.sh raspbian
  30. .PHONY: test-s3-all
  31. test-s3-all: test-s3-x86 test-s3-arm
  32. .PHONY: shell-x86
  33. shell-x86: build-x86
  34. docker run --rm -it $(DOCKER_TAG):ubuntu bash
  35. .PHONY: shell-arm
  36. shell-arm: build-arm
  37. docker run --rm -it $(DOCKER_TAG):raspbian bash
  38. .PHONY: shell
  39. shell: shell-x86
  40. .PHONY: clean
  41. clean:
  42. docker-compose -f docker-compose-test-s3.yml down -v