-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
796 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
FROM registry.cloudogu.com/official/base:3.14.3-1 | ||
|
||
LABEL NAME="official/redmine" \ | ||
VERSION="4.2.7-1" \ | ||
VERSION="4.2.8-1" \ | ||
maintainer="[email protected]" | ||
|
||
# This Dockerfile is based on https://github.com/docker-library/redmine/blob/master/4.0/alpine/Dockerfile | ||
|
||
# set environment variables | ||
ENV REDMINE_VERSION=4.2.7 \ | ||
ENV REDMINE_VERSION=4.2.8 \ | ||
CAS_PLUGIN_VERSION=2.0.0 \ | ||
ACTIVERECORD_SESSION_STORE_PLUGIN_VERSION=0.1.0 \ | ||
EXTENDED_REST_API_PLUGIN_VERSION=1.1.0 \ | ||
|
@@ -18,7 +18,7 @@ ENV REDMINE_VERSION=4.2.7 \ | |
WORKDIR=/usr/share/webapps/redmine \ | ||
SERVICE_TAGS=webapp \ | ||
RAILS_ENV=production \ | ||
REDMINE_TARGZ_SHA256=ed4be03b5ab63c2641a87db8978739dd997c0f646bfa1010ac9e5210c343724e \ | ||
REDMINE_TARGZ_SHA256=0b431c052d8fd36b93201dafaf3615cdb8d03460efcf2400e7d32662b2ab6272 \ | ||
CAS_PLUGIN_TARGZ_SHA256=f296de1a13ee1d52d545c0ee29c685f8eb46b606ccabd16fe3e392008c892f96 \ | ||
EXTENDED_REST_API_TARGZ_SHA256=7def9dee6a72f7a98c34c3d0beb17dabd414a1af86153624eb03ffe631272b31 \ | ||
ACTIVERECORD_TARGZ_SHA256=a5d3a5ac6c5329212621bab128a2f94b0ad6bb59084f3cc714786a297bcdc7ee \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,8 @@ | ||
MAKEFILES_VERSION=4.2.0 | ||
MAKEFILES_VERSION=7.0.1 | ||
|
||
.DEFAULT_GOAL:=dogu-release | ||
|
||
WORKSPACE=/workspace | ||
BATS_LIBRARY_DIR=$(TARGET_DIR)/bats_libs | ||
TESTS_DIR=./unitTests | ||
BASH_TEST_REPORT_DIR=$(TARGET_DIR)/shell_test_reports | ||
BASH_TEST_REPORTS=$(BASH_TEST_REPORT_DIR)/TestReport-*.xml | ||
BATS_ASSERT=$(BATS_LIBRARY_DIR)/bats-assert | ||
BATS_MOCK=$(BATS_LIBRARY_DIR)/bats-mock | ||
BATS_SUPPORT=$(BATS_LIBRARY_DIR)/bats-support | ||
BATS_FILE=$(BATS_LIBRARY_DIR)/bats-file | ||
BATS_BASE_IMAGE?=bats/bats | ||
BATS_CUSTOM_IMAGE?=cloudogu/bats | ||
BATS_TAG?=1.2.1 | ||
|
||
include build/make/variables.mk | ||
include build/make/self-update.mk | ||
include build/make/release.mk | ||
|
||
.PHONY unit-test-shell: | ||
unit-test-shell: unit-test-shell-$(ENVIRONMENT) | ||
|
||
$(BATS_ASSERT): | ||
@git clone --depth 1 https://github.com/bats-core/bats-assert $@ | ||
|
||
$(BATS_MOCK): | ||
@git clone --depth 1 https://github.com/grayhemp/bats-mock $@ | ||
|
||
$(BATS_SUPPORT): | ||
@git clone --depth 1 https://github.com/bats-core/bats-support $@ | ||
|
||
$(BATS_FILE): | ||
@git clone --depth 1 https://github.com/bats-core/bats-file $@ | ||
|
||
$(BASH_SRC): | ||
BASH_SRC:=$(shell find "${WORKDIR}" -type f -name "*.sh") | ||
|
||
${BASH_TEST_REPORT_DIR}: $(TARGET_DIR) | ||
@mkdir -p $(BASH_TEST_REPORT_DIR) | ||
|
||
unit-test-shell-ci: $(BASH_SRC) $(BASH_TEST_REPORT_DIR) $(BATS_ASSERT) $(BATS_MOCK) $(BATS_SUPPORT) $(BATS_FILE) | ||
@echo "Test shell units on CI server" | ||
@make unit-test-shell-generic | ||
|
||
unit-test-shell-local: $(BASH_SRC) $(PASSWD) $(ETCGROUP) $(HOME_DIR) buildTestImage $(BASH_TEST_REPORT_DIR) $(BATS_ASSERT) $(BATS_MOCK) $(BATS_SUPPORT) $(BATS_FILE) | ||
@echo "Test shell units locally (in Docker)" | ||
@docker run --rm \ | ||
-v $(HOME_DIR):/home/$(USER) \ | ||
-v $(WORKDIR):$(WORKSPACE) \ | ||
-w $(WORKSPACE) \ | ||
--entrypoint="" \ | ||
$(BATS_CUSTOM_IMAGE):$(BATS_TAG) \ | ||
${TESTS_DIR}/customBatsEntrypoint.sh make unit-test-shell-generic | ||
|
||
unit-test-shell-generic: | ||
@bats --formatter junit --output ${BASH_TEST_REPORT_DIR} ${TESTS_DIR} | ||
|
||
.PHONY buildTestImage: | ||
buildTestImage: | ||
@echo "Build shell test container" | ||
@cd ${TESTS_DIR} && docker build \ | ||
--build-arg=BATS_BASE_IMAGE=${BATS_BASE_IMAGE} \ | ||
--build-arg=BATS_TAG=${BATS_TAG} \ | ||
-t ${BATS_CUSTOM_IMAGE}:${BATS_TAG} \ | ||
. | ||
include build/make/bats.mk |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
WORKSPACE=/workspace | ||
BATS_LIBRARY_DIR=$(TARGET_DIR)/bats_libs | ||
TESTS_DIR=$(WORKDIR)/batsTests | ||
BASH_TEST_REPORT_DIR=$(TARGET_DIR)/shell_test_reports | ||
BASH_TEST_REPORTS=$(BASH_TEST_REPORT_DIR)/TestReport-*.xml | ||
BATS_ASSERT=$(BATS_LIBRARY_DIR)/bats-assert | ||
BATS_MOCK=$(BATS_LIBRARY_DIR)/bats-mock | ||
BATS_SUPPORT=$(BATS_LIBRARY_DIR)/bats-support | ||
BATS_FILE=$(BATS_LIBRARY_DIR)/bats-file | ||
BATS_BASE_IMAGE?=bats/bats | ||
BATS_CUSTOM_IMAGE?=cloudogu/bats | ||
BATS_TAG?=1.2.1 | ||
BATS_DIR=build/make/bats | ||
BATS_WORKDIR="${WORKDIR}"/"${BATS_DIR}" | ||
|
||
.PHONY unit-test-shell: | ||
unit-test-shell: unit-test-shell-$(ENVIRONMENT) | ||
|
||
$(BATS_ASSERT): | ||
@git clone --depth 1 https://github.com/bats-core/bats-assert $@ | ||
|
||
$(BATS_MOCK): | ||
@git clone --depth 1 https://github.com/grayhemp/bats-mock $@ | ||
|
||
$(BATS_SUPPORT): | ||
@git clone --depth 1 https://github.com/bats-core/bats-support $@ | ||
|
||
$(BATS_FILE): | ||
@git clone --depth 1 https://github.com/bats-core/bats-file $@ | ||
|
||
$(BASH_SRC): | ||
BASH_SRC:=$(shell find "${WORKDIR}" -type f -name "*.sh") | ||
|
||
${BASH_TEST_REPORT_DIR}: $(TARGET_DIR) | ||
@mkdir -p $(BASH_TEST_REPORT_DIR) | ||
|
||
unit-test-shell-ci: $(BASH_SRC) $(BASH_TEST_REPORT_DIR) $(BATS_ASSERT) $(BATS_MOCK) $(BATS_SUPPORT) $(BATS_FILE) | ||
@echo "Test shell units on CI server" | ||
@make unit-test-shell-generic | ||
|
||
unit-test-shell-local: $(BASH_SRC) $(PASSWD) $(ETCGROUP) $(HOME_DIR) buildTestImage $(BASH_TEST_REPORT_DIR) $(BATS_ASSERT) $(BATS_MOCK) $(BATS_SUPPORT) $(BATS_FILE) | ||
@echo "Test shell units locally (in Docker)" | ||
@docker run --rm \ | ||
-v $(HOME_DIR):/home/$(USER) \ | ||
-v $(WORKDIR):$(WORKSPACE) \ | ||
-w $(WORKSPACE) \ | ||
--entrypoint="" \ | ||
$(BATS_CUSTOM_IMAGE):$(BATS_TAG) \ | ||
"${BATS_DIR}"/customBatsEntrypoint.sh make unit-test-shell-generic-no-junit | ||
|
||
unit-test-shell-generic: | ||
@bats --formatter junit --output ${BASH_TEST_REPORT_DIR} ${TESTS_DIR} | ||
|
||
unit-test-shell-generic-no-junit: | ||
@bats ${TESTS_DIR} | ||
|
||
.PHONY buildTestImage: | ||
buildTestImage: | ||
@echo "Build shell test container" | ||
@cd $(BATS_WORKDIR) && docker build \ | ||
--build-arg=BATS_BASE_IMAGE=${BATS_BASE_IMAGE} \ | ||
--build-arg=BATS_TAG=${BATS_TAG} \ | ||
-t ${BATS_CUSTOM_IMAGE}:${BATS_TAG} \ | ||
. |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.