Skip to content
Snippets Groups Projects
Unverified Commit 7e547a80 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Capture logs of the integration test as the job artifact

parent ebde4b42
No related branches found
No related tags found
1 merge request!2Add Dockerisation and Collabora-specific patches
...@@ -95,6 +95,22 @@ worker: ...@@ -95,6 +95,22 @@ worker:
- "5252:5252" - "5252:5252"
worker: worker:
image: $CI_REGISTRY_IMAGE/worker:$TAG_SHA image: $CI_REGISTRY_IMAGE/worker:$TAG_SHA
volumes:
backend-logs:
driver_opts:
type: none
o: bind
device: './logs/backend'
frontend-logs:
driver_opts:
type: none
o: bind
device: './logs/frontend'
worker-logs:
driver_opts:
type: none
o: bind
device: './logs/worker'
before_script: before_script:
- apt update && apt install -y --no-install-recommends - apt update && apt install -y --no-install-recommends
curl curl
...@@ -107,6 +123,7 @@ worker: ...@@ -107,6 +123,7 @@ worker:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY" - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker info - docker info
- echo "$COMPOSE_OVERLAY" > docker-compose.override.yml - echo "$COMPOSE_OVERLAY" > docker-compose.override.yml
- mkdir -p logs/backend logs/frontend logs/worker
- | - |
cat << EOF > ~/.oscrc cat << EOF > ~/.oscrc
[general] [general]
...@@ -124,6 +141,7 @@ worker: ...@@ -124,6 +141,7 @@ worker:
artifacts: artifacts:
paths: paths:
- docker-compose.txt - docker-compose.txt
- logs/*/*.log
when: always when: always
integration-test: integration-test:
......
[program:clockwork] [program:clockwork]
command=bundle exec clockworkd --log-dir=log -l -c config/clock.rb run command=bundle exec clockworkd -c config/clock.rb run
directory=/obs/src/api directory=/obs/src/api
stdout_logfile=/obs/src/api/log/%(program_name)s-stdout.log stdout_logfile=/obs/src/api/log/%(program_name)s.log
redirect_stderr=true redirect_stderr=true
autostart=true autostart=true
stopsignal=KILL stopsignal=KILL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment