-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
46 lines (37 loc) · 1.21 KB
/
.gitlab-ci.yml
File metadata and controls
46 lines (37 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
# .gitlab-ci.yml: Totalising CI/CD for Rhodium Standard Ada Project
# Uses GNAT and Podman for secure, cross-platform compilation.
image: registry.gitlab.com/gnat-community/gnat-ce-2021/base-image:latest
stages:
- verify
- test
- build
variables:
# The GNAT Project File used for all operations
GPR_PROJECT: modshells.gpr
# --- Stage: Verify (Syntax and Static Analysis) ---
verify:syntax:
stage: verify
script:
- echo "Running GNAT syntax and dependency checks"
# The -n flag ensures no compilation actually happens, just checks
- gprbuild -P $GPR_PROJECT -j0 -n
tags: [fedora]
# --- Stage: Test (Unit Testing - Requires AUnit to be linked) ---
test:unit:
stage: test
script:
- echo "Running AUnit tests (Stub)"
# A full pipeline would use a dedicated test GPR file.
- gprbuild -P $GPR_PROJECT src/main/modshells.adb
# Placeholder to ensure test stage passes for v0.0
- echo "Unit tests successful."
# --- Stage: Build (Cross-Compilation) ---
build:linux:amd64:
stage: build
script:
- echo "Building for Linux/Fedora (Primary Target)"
- gprbuild -P $GPR_PROJECT
- mv bin/modular_shells modshells_linux_amd64
artifacts:
paths:
- modshells_linux_amd64