-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Copy pathrun-all-tests.yml
77 lines (73 loc) · 2.23 KB
/
run-all-tests.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
71
72
73
74
75
76
77
version: v1.0
name: run-all-tests
agent:
machine:
type: s1-prod-ubuntu22-04-amd64-1
execution_time_limit:
hours: 3
global_job_config:
prologue:
commands:
- checkout
- '[[ -z "$GIT_REF" ]] || git checkout $GIT_REF'
- wget -O rapidjson-dev.deb https://launchpad.net/ubuntu/+archive/primary/+files/rapidjson-dev_1.1.0+dfsg2-3_all.deb
- sudo dpkg -i rapidjson-dev.deb
- sudo apt update
- sudo apt remove -y needrestart
- sudo apt install -y valgrind
- python3 -m pip install -U pip
- python3 -m pip -V
- (cd tests && python3 -m pip install -r requirements.txt)
- ./configure --install-deps --enable-werror --enable-devel
- make -j all
- make -j -C tests build
- sem-version java 17
blocks:
- name: "Run all tests (x86_64)"
dependencies: []
task:
agent:
machine:
type: s1-prod-ubuntu22-04-amd64-2
prologue:
commands:
- if [[ "$TEST_ARCHES" != *"x86_64"* ]]; then exit 0; fi
jobs:
- name: "PLAINTEXT cluster (x86_64)"
env_vars:
- name: TEST_SSL
value: "False"
commands:
- if [[ "$TEST_TYPE" != *"plaintext"* ]]; then exit 0; fi
- ./tests/run-all-tests.sh
- name: "SSL cluster (x86_64)"
env_vars:
- name: TEST_SSL
value: "True"
commands:
- if [[ "$TEST_TYPE" != *"ssl"* ]]; then exit 0; fi
- ./tests/run-all-tests.sh
- name: "Run all tests (aarch64)"
dependencies: []
task:
agent:
machine:
type: s1-prod-ubuntu22-04-arm64-2
prologue:
commands:
- if [[ "$TEST_ARCHES" != *"aarch64"* ]]; then exit 0; fi
jobs:
- name: "PLAINTEXT cluster (aarch64)"
env_vars:
- name: TEST_SSL
value: "False"
commands:
- if [[ "$TEST_TYPE" != *"plaintext"* ]]; then exit 0; fi
- ./tests/run-all-tests.sh
- name: "SSL cluster (aarch64)"
env_vars:
- name: TEST_SSL
value: "True"
commands:
- if [[ "$TEST_TYPE" != *"ssl"* ]]; then exit 0; fi
- ./tests/run-all-tests.sh