Commit 5465179f authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

CI: move GCOV flag to travis.yml

Move GCOV to travis environment, so now we can change it easily
on a per-build basis.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 9fb43a48
...@@ -4,12 +4,12 @@ dist: trusty ...@@ -4,12 +4,12 @@ dist: trusty
services: services:
- docker - docker
env: env:
- TR_ARCH=local - TR_ARCH=local GCOV=1
- TR_ARCH=x86_64 - TR_ARCH=x86_64 GCOV=1
- TR_ARCH=armv7hf - TR_ARCH=armv7hf GCOV=1
- TR_ARCH=aarch64 - TR_ARCH=aarch64 GCOV=1
- TR_ARCH=ppc64le - TR_ARCH=ppc64le GCOV=1
- TR_ARCH=alpine - TR_ARCH=alpine GCOV=1
script: script:
- sudo make -C scripts/travis $TR_ARCH - sudo make -C scripts/travis $TR_ARCH
after_success: after_success:
......
#!/bin/sh #!/bin/sh
set -x -e set -x -e
# We only need to run the below for gcov-enabled builds
[ "$GCOV" = "1" ] || exit 0
sudo apt-get install -qq -y lcov sudo apt-get install -qq -y lcov
gem install coveralls-lcov gem install coveralls-lcov
sudo lcov --directory ../.. --capture --output-file coverage.info sudo lcov --directory ../.. --capture --output-file coverage.info
......
...@@ -20,7 +20,7 @@ travis_prep ...@@ -20,7 +20,7 @@ travis_prep
ulimit -c unlimited ulimit -c unlimited
echo "|`pwd`/test/abrt.sh %P %p %s %e" > /proc/sys/kernel/core_pattern echo "|`pwd`/test/abrt.sh %P %p %s %e" > /proc/sys/kernel/core_pattern
export GCOV=1 export GCOV
make make
make -C test/zdtm make -C test/zdtm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment