forked from TrivialCompiler/TrivialCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
35 lines (30 loc) · 898 Bytes
/
.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
variables:
RESULT_JSON_PATH: "build/Testing/Temporary/LastTest.json"
.common_config: &common_config
image: "comp_judge:20.04"
script:
- cp .gitmodules-ci .gitmodules
- git submodule sync
- git submodule update --init
- bash utils/run_test.sh
after_script:
- 'curl --header "PRIVATE-TOKEN: $CI_ARTIFACT_TOKEN" https://git.tsinghua.edu.cn/api/v4/projects/${CI_PROJECT_ID}/jobs/artifacts/master/raw/${RESULT_JSON_PATH}?job=${CI_JOB_NAME} -o ${RESULT_JSON_PATH} || true'
- python3 utils/extract_result.py build/Testing/Temporary/LastTest.log ${RESULT_JSON_PATH}
artifacts:
paths:
- build/Testing/Temporary/*.log
- build/*.S
- build/*.bc
- ${RESULT_JSON_PATH}
expire_in: 1 year
when: always
test_on_x86:
<<: *common_config
tags:
- x86_64
- docker
test_on_arm:
<<: *common_config
tags:
- armv7-a
- docker