Skip to content

Commit a71f397

Browse files
committed
install python for gcovr
1 parent 21f03b2 commit a71f397

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ variables:
22
GIT_SUBMODULE_STRATEGY: recursive
33

44
image: ruby:alpine
5+
before_script:
6+
- ruby -v
7+
- apk update
8+
- apk add bash build-base bison git curl valgrind gcovr
9+
- which ruby
510

611
test:
712
variables:
@@ -11,11 +16,6 @@ test:
1116
NORMAL_TEXT: "\e[0m"
1217
tags:
1318
- cpp
14-
before_script:
15-
- ruby -v
16-
- apk update
17-
- apk add bash build-base bison git curl valgrind gcovr
18-
- which ruby
1919
script:
2020
- LEAKCHECK=1 make
2121
- gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR}
@@ -28,15 +28,13 @@ test:
2828
path: coverage.xml
2929

3030
pages:
31-
image: python
3231
tags:
3332
- cpp
3433
stage: deploy
35-
before_script:
36-
- python -V
37-
- pip -V
38-
- which python
3934
script:
35+
- apk add py3-pip
36+
- python -m venv .
37+
- . bin/activate
4038
- pip install gcovr
4139
- make coverage
4240
- mkdir .public

0 commit comments

Comments
 (0)