-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
29 lines (25 loc) · 1.01 KB
/
.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
#*******************************************************************************************#
#*----- Description : CI for project with flex and c++ ****#
#*----- Auteur : (c) 2021 Aubertin Emmanuel ****#
#*----- GitHub : Athomisos | GitLab : aTHO_ ****#
#*----- LinkedIn : linkedin.com/in/emmanuel-aubertin ****#
#*******************************************************************************************#
image: gcc # https://hub.docker.com/_/gcc/
build:
stage: build
script:
- apt update && apt -y install make flex
- make clean
- flex++ -d -otokeniser.cpp tokeniser.l
- g++ -c tokeniser.cpp
- g++ -ggdb -o aTHOlang compilateur.cpp tokeniser.o
artifacts:
paths:
- aTHOlang
Compilation:
stage: test
needs: ["build"]
script:
- ./aTHOlang <input.aTHO >test.s
- gcc -ggdb -no-pie -fno-pie test.s -o test.bin
- ./test.bin