-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (44 loc) · 1.17 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# this helps speed our Docker containers a bit because by default it uses vfs which is slower
variables:
DOCKER_DRIVER: overlay2
stages:
# - build-image
- build
- test
- deploy
build-job:
image:
name: gitlab-etu.ing.he-arc.ch:5050/lucas.perrin1/docker-image-gelo:latest
entrypoint: [ '/bin/bash', '-c', 'ln -snf /bin/bash /bin/sh && /bin/bash -c $0' ]
tags:
- alpine-docker # here we specify the runner to use
stage: build
artifacts:
paths:
- ./docDoxygen
- ./build/tests
script:
- mkdir build
- cd build
- cmake -G "Ninja" ../LeakMan/
- ninja
- cmake --build . --target BuildDoc
test-job:
image:
name: gitlab-etu.ing.he-arc.ch:5050/lucas.perrin1/docker-image-gelo:latest
entrypoint: [ '/bin/bash', '-c', 'ln -snf /bin/bash /bin/sh && /bin/bash -c $0' ]
tags:
- alpine-docker
stage: test
script:
- echo "Running tests..."
- ./build/tests
deploy-job:
image:
name: gitlab-etu.ing.he-arc.ch:5050/lucas.perrin1/docker-image-gelo:latest
entrypoint: [ '/bin/bash', '-c', 'ln -snf /bin/bash /bin/sh && /bin/bash -c $0' ]
tags:
- alpine-docker
stage: deploy
script:
- echo "Deploying..."