-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (41 loc) · 1008 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
stages:
- lint
- build
- tests
lint-job:
stage: lint
before_script:
- echo "Download some packages..."
- apt-get update -y
- apt-get install -y python3-pip
- python3 -m pip install cpplint
- echo "Download complete."
script:
- echo "Linting the code..."
- python3 -m cpplint --quiet --recursive *
- echo "Linting complete."
build-job:
stage: build
before_script:
- echo "Download some packages..."
- apt-get update -y
- apt-get install -y make gcc flex bison
- echo "Download complete."
script:
- echo "Compiling the code..."
- make
- echo "Compile complete."
tests-job:
stage: tests
before_script:
- echo "Download some packages..."
- apt-get update -y
- apt-get install -y make gcc spim flex bison
- export COLORIZE=0
- echo "Download complete."
script:
- echo "Launching tests..."
- sh tests.sh
- echo "Tests finished."
only:
- main