Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 8da872a

Browse files
committed
Merge branch 'backport-intergrate-coveralls' into tango-9-lts
Conflicts: .travis.yml .travis/debian8/Dockerfile
2 parents 62e9818 + 548d8d5 commit 8da872a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@ addons:
2525
organization: "tango-controls"
2626
token:
2727
secure: ${SONAR_TOKEN}
28-
apt:
29-
update: true
3028

3129
before_install:
3230
- docker pull tangocs/mysql:9.2.2
3331
- docker pull tangocs/tango-cs:latest
3432
- git clone https://github.com/JoakimSoderberg/coveralls-cmake.git
3533
- git clone -b v4.2.2 https://${CI_USER_TOKEN}@github.com/zeromq/cppzmq.git cppzmq
3634
- git clone -b tango-9-lts https://${CI_USER_TOKEN}@github.com/tango-controls/tango-idl.git idl
37-
- sudo apt-get install -y gcovr
3835

3936
before_script:
4037
- docker run --name mysql_db -e MYSQL_ROOT_PASSWORD=root -d tangocs/mysql:9.2.2 --sql-mode=""
@@ -51,7 +48,7 @@ script:
5148
- .travis/test.sh COVERALLS=OFF
5249

5350
after_success:
54-
- test ${COVERALLS} = "ON" && gcovr -r . -x --object-directory=/home/tango/src/build > report.xml
51+
- test ${COVERALLS} = "ON" && .travis/coverage.sh
5552
- test ${SONAR_SCANNER} = "ON" && sonar-scanner
5653

5754
deploy:

.travis/coverage.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
docker exec cpp_tango /bin/sh -c 'cd /home/tango/src; gcovr --root /home/tango/src --use-gcov-files --xml --output report.xml --verbose /home/tango/src/build'

.travis/debian8/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN apt-get install -y curl lsb-release
1414

1515
RUN apt-get install -y omniidl libomniorb4-dev libcos4-dev libomnithread3-dev libzmq3-dev
1616

17-
RUN apt-get update && apt-get install -y curl
17+
RUN apt-get update && apt-get install -y curl gcovr
1818

1919
RUN groupadd -g "$APP_GID" tango
2020

0 commit comments

Comments
 (0)