run all tests

This commit is contained in:
Viktor Scharf
2025-01-24 16:50:47 +01:00
parent e428d56443
commit e98f56002c
5 changed files with 89 additions and 15 deletions
+17
View File
@@ -274,3 +274,20 @@ clean-files:
.PHONY: clean
clean: clean-docker-container clean-docker-volumes clean-dev-docker-image clean-files ## clean all
.PHONY: start-server
start-server: ## build and start server
@echo "Build and start server..."
COMPOSE_FILE=src/opencloud-base.yml:src/tika.yml:src/email.yml \
COMPOSE_PROJECT_NAME=opencloud \
SEARCH_EXTRACTOR_TYPE=tika \
OC_IMAGE_TAG=dev \
WITH_WRAPPER=true \
TEST_SOURCE=opencloud \
STORAGE_DRIVER=ocis \
OC_ASYNC_UPLOADS=true \
START_TIKA=true \
SEARCH_EXTRACTOR_TYPE=tika \
START_EMAIL=true \
OC_ADD_RUN_SERVICES=notifications \
docker compose up -d --build --force-recreate
+2
View File
@@ -6,3 +6,5 @@ services:
command: email:9000
email:
image: inbucket/inbucket
ports:
- '9000:9000'
@@ -23,6 +23,8 @@ services:
FRONTEND_SEARCH_MIN_LENGTH: "2"
OC_ASYNC_UPLOADS: $OC_ASYNC_UPLOADS
OC_ADD_RUN_SERVICES: $OC_ADD_RUN_SERVICES
PROXY_HTTP_ADDR: "0.0.0.0:9200"
OC_JWT_SECRET: "some-ocis-jwt-secret"
# s3ng specific settings
STORAGE_USERS_S3NG_ENDPOINT: http://ceph:8080
@@ -34,7 +36,8 @@ services:
NOTIFICATIONS_SMTP_HOST: email
NOTIFICATIONS_SMTP_PORT: 2500
NOTIFICATIONS_SMTP_INSECURE: "true"
NOTIFICATIONS_SMTP_SENDER: "opencloud <noreply@example.com>"
NOTIFICATIONS_SMTP_SENDER: "OpenCloud <noreply@example.com>"
NOTIFICATIONS_DEBUG_ADDR: 0.0.0.0:9174
# antivirus
ANTIVIRUS_SCANNER_TYPE: "clamav"
@@ -50,6 +53,10 @@ services:
# fonts map for txt thumbnails (including unicode support)
THUMBNAILS_TXT_FONTMAP_FILE: "/drone/src/tests/config/drone/fontsMap.json"
ports:
- '9200:9200'
- '5200:5200' ## ocwrapper
- '9174:9174' ## notifications debug
volumes:
- ../../../config:/drone/src/tests/config
- ../../../ocwrapper/bin/ocwrapper:/usr/bin/ocwrapper