forked from inet-framework/simulte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
52 lines (49 loc) · 1.48 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
stages:
- build
- test
# this job
# - prepares the environment
# (pulls required docker containers, clones and builds inet)
# - builds the simulte project itself
Build:
stage: build
variables:
RV: 'rover-main/scripts'
script:
- "mkdir .tmp"
- "mv * .tmp"
- "git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@sam-dev.cs.hm.edu/rover/rover-main.git"
# - "$RV/pull_images.sh"
- "mv .tmp simulte"
- "git clone --branch v4.2.1 https://gitlab-ci-token:${CI_JOB_TOKEN}@sam-dev.cs.hm.edu/rover/inet.git inet4"
- "cd inet4"
- "../$RV/omnetpp exec make makefiles"
- "../$RV/omnetpp exec make -j16; TEST_STATUS=${PIPESTATUS[0]}"
# we do not need the inet sources anymore - delete them to have less artifacts
- "find . -name \"*.cc\" -type f -delete"
# build simulte itself
- "cd ../simulte"
- "../$RV/omnetpp exec make makefiles"
- "../$RV/omnetpp exec make -j16"
artifacts:
paths:
# we keep the scripts
- rover-main/scripts
# we need to keep the ned files and the simulte lib
- simulte
# we need to keep the ned files and the inet lib (all stored in the src subfolder)
- inet4/src
expire_in: 2 weeks
# This job runs the fingerprint tests
Fingerprints:
stage: test
variables:
RV: 'rover-main/scripts'
script:
# - "mv tests simulte/"
- "cd simulte/tests/fingerprint"
- "../../../$RV/omnetpp exec ./fingerprints"
artifacts:
paths:
- simulte/tests/fingerprint
expire_in: 2 weeks