-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitlab-ci.yml
73 lines (63 loc) · 1.28 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
stages:
- test
- build_lib
- build_integration
- docs
run_ceedling_tests:
stage: test
tags:
- shell
script:
- source setup_env
- rm -rf build/
- CEEDLING_MAIN_PROJECT_FILE=scripts/ceedling.yml ceedling gcov:all utils:gcov
coverage: '/^TOTAL.*\s+(\d+\%)$/'
artifacts:
when: always
paths:
- build/artifacts/gcov/
reports:
junit: build/artifacts/gcov/junit_report.xml
coverage_report:
coverage_format: cobertura
path: build/artifacts/gcov/GcovCoverageCobertura.xml
build_library:
stage: build_lib
tags:
- shell
script:
- source setup_env
- rm -rf build/
- mkdir build
- cd build
- cmake -DLT_USE_TREZOR_CRYPTO=1 ..
- make
build_integration_tests:
stage: build_integration
tags:
- shell
script:
- source setup_env
- cd tests/integration/
- mkdir build
- cd build
- cmake -DLT_USE_TREZOR_CRYPTO=1 ..
- make
LT_BUILD_DOCS:
stage: docs
tags:
- shell
script:
- source setup_env
- rm -rf build/
- mkdir build
- cd build
- cmake -DLT_BUILD_DOCS=1 ..
- make doc_doxygen
- cd docs/doxygen/latex
- make
- mv refman.pdf libtropic.pdf
- mv libtropic.pdf ../../../../
artifacts:
paths:
- libtropic.pdf