Commit 940e425a authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

additional logging for continuous integration in case of failed pipeline

parent 2b910b9d
Pipeline #11836 passed with stages
in 2 minutes and 39 seconds
......@@ -13,6 +13,7 @@ ci_frontend:
artifacts:
paths:
- ci_frontend.log
when: always
ci_backend:
stage: ci
script:
......@@ -20,6 +21,7 @@ ci_backend:
artifacts:
paths:
- ci_backend.log
when: always
coverage:
stage: coverage
script:
......@@ -28,4 +30,5 @@ coverage:
artifacts:
paths:
- coverage.log
when: always
coverage: '/Statements.*?(\d+(?:\.\d+)?)%/'
......@@ -23,6 +23,7 @@ import {TextRange} from './models/textRange';
import Spy = jasmine.Spy;
import {AnnisResponse, NodeMC} from '../../openapi';
import {Phenomenon} from '../../openapi';
import {Subscription} from 'rxjs';
describe('CorpusService', () => {
let httpClient: HttpClient;
......@@ -251,12 +252,17 @@ describe('CorpusService', () => {
it('should initialize the current corpus', fakeAsync(() => {
helperService.applicationState.next(new ApplicationState());
let corpus: CorpusMC = {source_urn: ''};
const subscriptions: Subscription[] = [];
function initCorpus(): void {
subscriptions.forEach((sub: Subscription, idx: number, subList: Subscription[]) => {
sub.unsubscribe();
delete subList[idx];
});
corpusService.initCurrentCorpus().then(() => {
corpusService.currentCorpus.subscribe((cc: CorpusMC) => {
subscriptions.push(corpusService.currentCorpus.subscribe((cc: CorpusMC) => {
corpus = cc;
});
}));
});
flushMicrotasks();
}
......
......@@ -29,7 +29,7 @@ export default class MockMC {
};
static applicationState: ApplicationState = new ApplicationState({
currentSetup: new TextData({
currentCorpus: {citations: {}, source_urn: ''},
currentCorpus: {citations: {}, source_urn: 'exampleUrn'},
currentTextRange: new TextRange({start: ['1', '2'], end: ['1', '2']})
}),
mostRecentSetup: new TextData({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment