-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
46 lines (42 loc) · 979 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
36
37
38
39
40
41
42
43
44
45
46
# GitLab CI/CD Configuration for oberon-lang
# Michael Grossniklaus, 2024
stages:
- build
- test
# - deploy
compile:
stage: build
tags:
- linux
image: gitlab.inf.uni-konstanz.de:5050/michael.grossniklaus/oberon-lang:latest
script:
- echo "Compiling the code..."
- mkdir build && cd build
- cmake .. -G "Unix Makefiles"
- make
artifacts:
name: 'oberon-lang'
paths:
- build/src/oberon-lang
- build/liboberon/static/liboberon.*
- build/liboberon/liboberon.*
- build/liboberon/*.smb
expire_in: 1 hour
test:
stage: test
tags:
- linux
needs:
- compile
image: gitlab.inf.uni-konstanz.de:5050/michael.grossniklaus/oberon-lang:latest
script:
- echo "Running unit tests..."
- cd build
- cmake .. -G "Unix Makefiles"
- make test
#deploy:
# stage: deploy
# environment: production
# script:
# - echo "Deploying application..."
# - echo "Application successfully deployed."