-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
70 lines (62 loc) · 1.7 KB
/
.gitlab-ci.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
# how to in local docker:
# run the image:
# $ docker run -it --entrypoint /bin/bash maven:3.6.3-jdk-8
#
# install newman:
# $ apt-get update && apt-get install -y nodejs npm && npm install -g newman
#
# clone repository
# $ git clone https://pajda.fit.vutbr.cz/verifit/oslc-generic-analysis.git
#
# ...
image: maven:3.6.3-jdk-8
# Cache downloaded dependencies and plugins between builds.
cache:
paths:
- .m2/repository
stages:
- build
- test
build:
stage: build
script:
- /bin/bash ./build.sh
- du -sh analysis/target compilation/target shared/target domain/target
artifacts: # TODO artifacts were too big...
paths:
- analysis/target
- compilation/target
- shared/target
- domain/target
- analysis/VeriFitAnalysis.properties
- compilation/VeriFitCompilation.properties
- sparql_triplestore/jetty-distribution/start.ini
expire_in: 20 minutes
# test that Unite can start
test-start:
stage: test
script: /bin/bash ./dev_tools/ci_test_start.sh
# test the main functionality of Unite
test-newman-core:
stage: test
before_script:
- apt-get update
- apt-get install -y nodejs npm
- npm install -g newman
script: /bin/bash ./dev_tools/ci_test_suite.sh
# test keepLastN functionality
test-newman-keepLastN:
stage: test
before_script:
- apt-get update
- apt-get install -y nodejs npm
- npm install -g newman
script: /bin/bash ./dev_tools/ci_test_keep_last_n.sh
# test port configuration through environment variables
test-newman-env-ports:
stage: test
before_script:
- apt-get update
- apt-get install -y nodejs npm
- npm install -g newman
script: /bin/bash ./dev_tools/ci_test_environments_ports.sh