forked from 4Science/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
87 lines (82 loc) · 3.62 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
image: maven:3.6.1
definitions:
docker:
memory: 2048 # increase memory for docker-in-docker from 1GB to 2GB
caches:
gradlewrapper: ~/.gradle/wrapper
steps:
- step: &unit-test-code-checks
runs-on: self.hosted
name: unit-test-code-checks
size: 4x
caches:
- maven
script:
- export MAVEN_OPTS="-Xmx4096M"
- mvn install -B -V -P-assembly -Dtest.argLine=-Xmx4096M -Pcoverage-report -DskipUnitTests=false -Pdspace-rest
artifacts:
- dspace-api/target/surefire-reports/*-output.txt
- dspace-iiif/target/surefire-reports/*-output.txt
- dspace-oai/target/surefire-reports/*-output.txt
- dspace-rdf/target/surefire-reports/*-output.txt
- dspace-rest/target/surefire-reports/*-output.txt
- dspace-server-webapp/target/surefire-reports/*-output.txt
- dspace-services/target/surefire-reports/*-output.txt
- dspace-sword/target/surefire-reports/*-output.txt
- dspace-swordv2/target/surefire-reports/*-output.txt
- dspace-api/target/failsafe-reports/*-output.txt
- dspace-iiif/target/failsafe-reports/*-output.txt
- dspace-oai/target/failsafe-reports/*-output.txt
- dspace-rdf/target/failsafe-reports/*-output.txt
- dspace-rest/target/failsafe-reports/*-output.txt
- dspace-server-webapp/target/failsafe-reports/*-output.txt
- dspace-services/target/failsafe-reports/*-output.txt
- dspace-sword/target/failsafe-reports/*-output.txt
- dspace-swordv2/target/failsafe-reports/*-output.txt
- step: &integration-tests
runs-on: self.hosted
name: integration-tests
size: 4x
caches:
- gradle
- gradlewrapper
- maven
script:
- export MAVEN_OPTS="-Xmx4096M"
- ./dspace-api/src/test/data/dspaceFolder/bin/install_grobid.sh
- mvn clean install license:check -DskipUnitTests=true -Pdspace-rest -DskipITs=false -Pdspace-rest -DskipIntegrationTests=false -P !assembly -B -V -Dsurefire.rerunFailingTestsCount=2 -Dtest.argLine=-Xmx4096M
artifacts:
- dspace-api/target/surefire-reports/*-output.txt
- dspace-iiif/target/surefire-reports/*-output.txt
- dspace-oai/target/surefire-reports/*-output.txt
- dspace-rdf/target/surefire-reports/*-output.txt
- dspace-rest/target/surefire-reports/*-output.txt
- dspace-server-webapp/target/surefire-reports/*-output.txt
- dspace-services/target/surefire-reports/*-output.txt
- dspace-sword/target/surefire-reports/*-output.txt
- dspace-swordv2/target/surefire-reports/*-output.txt
- dspace-api/target/failsafe-reports/*-output.txt
- dspace-iiif/target/failsafe-reports/*-output.txt
- dspace-oai/target/failsafe-reports/*-output.txt
- dspace-rdf/target/failsafe-reports/*-output.txt
- dspace-rest/target/failsafe-reports/*-output.txt
- dspace-server-webapp/target/failsafe-reports/*-output.txt
- dspace-services/target/failsafe-reports/*-output.txt
- dspace-sword/target/failsafe-reports/*-output.txt
- dspace-swordv2/target/failsafe-reports/*-output.txt
pipelines:
branches:
'dspace-cris-7':
- parallel:
- step: *unit-test-code-checks
- step: *integration-tests
pull-requests:
'**':
- parallel:
- step: *unit-test-code-checks
- step: *integration-tests
custom:
integration:
- step: *integration-tests
unit:
- step: *unit-test-code-checks