-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
57 lines (51 loc) · 1.13 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
stages:
- build
- test
- deploy
make:
stage: build
script:
- chmod +x build.sh
- ./build.sh
artifacts:
paths:
- cmake-build-debug/src/loadBalancer
- cmake-build-debug/src/raft
- cmake-build-debug/src/client
expire_in: 1 hrs
checkName:
stage: build
script:
- bash -c '[ -s groupMembers.txt ]'
runCorrectness:
stage: test
script:
- chmod +x testCorrectness.sh
- RESULT=$(./testCorrectness.sh)
- RESULT=`echo "${RESULT}" | tail -n 1`
- EXPECTED='correct'
- bash -c "[ "$RESULT" = "$EXPECTED" ]"
runResilience:
stage: test
script:
- chmod +x testResilience.sh
- RESULT=$(./testResilience.sh)
- RESULT=`echo "${RESULT}" | tail -n 1`
- EXPECTED='correct'
- bash -c "[ "$RESULT" = "$EXPECTED" ]"
runWorkload:
stage: test
script:
- chmod +x testWorkload.sh
- RESULT=$(./testWorkload.sh)
- RESULT=`echo "${RESULT}" | tail -n 1`
- EXPECTED='correct'
- bash -c "[ "$RESULT" = "$EXPECTED" ]"
artifacts:
paths:
- ./readTime.txt
- ./writeTime.txt
checkReport:
stage: deploy
script:
- bash -c '[ -f report.pdf ]'