-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml.disabled
72 lines (67 loc) · 1.61 KB
/
.gitlab-ci.yml.disabled
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
stages:
- build
- test
- cleanup
calculate_version:
stage: .pre
artifacts:
paths:
- version.txt
- version.svg
script:
- /usr/local/bin/gitversion /showvariable SemVer > version.txt
- cat version.txt
- REV_TAG=$(cat version.txt)
- curl https://badgen.net/badge/$CI_COMMIT_REF_NAME/$REV_TAG/blue?icon=nuget > version.svg
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
setup:
stage: .pre
script:
- echo "Pre stages"
- whoami
- cd Local
- sudo chown -R gitlab-runner:gitlab-runner .
- sudo chmod -R 777 .
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "batch-replays-229"
build:
stage: build
script:
- cd Local
- chmod 777 testbed_build_ci.sh
- ./testbed_build_ci.sh
- chmod 777 permissions.sh
- sudo ./permissions.sh &
- ./testbed_up_core.sh -iz
- sudo pkill permissions.sh
- cd ..
- sudo chown -R gitlab-runner:gitlab-runner .
- sudo chmod -R 777 .
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "batch-replays-229"
test:
stage: test
allow_failure: true
artifacts:
paths:
- "Tools/agent_testing/AgentPredicateTests/test_output.txt"
script:
- cd Tools/agent_testing
- ./test_agents.sh config.json
- cd -
- rm -rf Agents/*/logs
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "batch-replays-229"
cleanup:
when: always
stage: cleanup
script:
- cd Local
- ./testbed_down.sh -c
- cd ..
- sudo chown -R gitlab-runner:gitlab-runner .
- sudo chmod -R 777 .