-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
51 lines (46 loc) · 1.29 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
# This file is a template, and might need editing before it works on your project.
# use the official gcc image, based on debian
# can use verions as well, like gcc:5.2
# see https://hub.docker.com/_/gcc/
image: conanio/gcc49
build:
stage: build
before_script:
# Upgrade Conan version
- sudo pip install --upgrade conan
# Install dependencies to generate documentation
- sudo apt-get -qq update
- sudo apt-get install -y --force-yes --no-install-recommends doxygen
- sudo pip install breathe
- sudo pip install sphinx
# Automatic detection of your arch, compiler, etc.
- conan user
script:
# Download dependencies, build, test and create package
- conan install . -if build -b missing
- conan build . -bf build
artifacts:
paths:
- build
# run tests using the binary built before
test:
stage: test
script:
- sudo pip install gcovr
- ./build/fibonacci/bin/fibonacci_test --gtest_output="xml:testing-report.xml"
- gcovr . build/ --xml-pretty -o coverage-report.xml
artifacts:
when: always
reports:
junit: testing-report.xml
cobertura: coverage-report.xml
# Deploy documentation to pages
pages:
stage: deploy
script:
- mv ./build/docs/sphinx public
artifacts:
paths:
- public
only:
- master