-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
52 lines (47 loc) · 1.21 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
52 lines (47 loc) · 1.21 KB
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
# Define stages once at the top
stages:
- sanity
- test
# - lint
- secret-detection
# sast stage is provided by the template; it will be added automatically
# Include security templates (they bring their own jobs and stages)
# include:
# - template: Security/SAST.gitlab-ci.yml
# - template: Security/Secret-Detection.gitlab-ci.yml
# variables:
# SECRET_DETECTION_ENABLED: 'true'
default:
tags:
- docker
before_script:
- apt-get update
- apt-get install -y software-properties-common
- add-apt-repository universe
- apt-get update
- apt-get install -y iverilog verilator curl python3-dev
- curl -LsSf https://astral.sh/uv/install.sh | sh
- source $HOME/.local/bin/env
- uv sync --active
sanity:
stage: sanity
timeout: 10m
script:
- mkdir -p ./build/logs/
- chmod +x ./scripts/sanity.sh
- ./scripts/sanity.sh > ./build/logs/gitlab_runner_sanity.log 2>&1
artifacts:
paths:
- ./build/logs/
when: always
test:
stage: test
timeout: 1h
script:
- mkdir -p ./build/logs/
- chmod +x ./scripts/mcore_regr.sh
- ./scripts/mcore_regr.sh > ./build/logs/gitlab_runner_test.log 2>&1
artifacts:
paths:
- ./build/logs/
when: always