-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
53 lines (46 loc) · 1.02 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
49
50
51
52
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/viaduck/ci
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- lint
- test
- coverage
build:linux:x86_64:
stage: build
script:
- mkdir build
- cd build
- cmake -GNinja ../ -DSECURE_MEMORY_BUILD_TESTS=ON -DGTEST_SRC_DIR=/usr/src/googletest/
- ninja
artifacts:
expire_in: 2h
paths:
- build/
lint:linux:x86_64:
stage: lint
script:
- vd-lint SecureMemory $PWD
needs:
- job: build:linux:x86_64
artifacts: false
test:linux:x86_64:
variables:
GIT_STRATEGY: none
stage: test
script:
- cd build
- test/secure_memory_test
needs:
- build:linux:x86_64
coverage:linux:x86_64:
stage: coverage
script:
- cd build
- cmake . -DCMAKE_BUILD_TYPE=Debug -DVIADUCK_COVERAGE=ON
- ninja secure_memory_test_coverage
artifacts:
paths:
- build/secure_memory_test_coverage/
needs:
- build:linux:x86_64