-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
36 lines (32 loc) · 953 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
stages:
- build
linux:
stage: build
tags:
- docker
- linux
image: fedora:33
before_script:
- dnf install -y g++ gcc-gfortran cmake gcovr python3-pip
script:
- mkdir -p _build
- cd _build
- cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=1 -DCMAKE_Fortran_FLAGS=--coverage -DCMAKE_C_FLAGS=--coverage -DCMAKE_CXX_FLAGS=--coverage ..
- make
- make test
- mkdir -p ../coverage
- gcovr -r .. src libfortres
- gcovr -r .. src libfortres --xml=../coverage.xml --html-details=../coverage/coverage.html
- cd ..
- python3 -m pip install wheel
- FDEPATH=_build/package/Debug/bin python3 setup.py bdist_wheel --dist-dir coverage
coverage: '/^TOTAL.*\s+(\d+\%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
expose_as: 'Coverage Report'
paths:
- coverage/
#- dist/*.whl