Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit a37a221

Browse files
committed
add lcov report
1 parent a2729db commit a37a221

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ deploy:
9797
bucket: openweave
9898
skip_cleanup: true
9999
acl: public-read
100-
upload-dir: happy-test-log/$TRAVIS_BUILD_NUMBER
101-
local-dir: "$TRAVIS_BUILD_DIR/happy-test-logs"
100+
upload-dir: openweave-core-build-artifacts/$TRAVIS_BUILD_NUMBER
101+
local-dir: "$TRAVIS_BUILD_DIR/build_artifacts"
102102
on:
103103
repo: openweave/openweave-core
104104
tags: true

.travis/after_failure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ bundle update
3636

3737
dpl --provider=gcs --access-key-id=GOOGNPZYTVTEPZM5VBRAVVUU \
3838
--secret-access-key=$GCSKEY --bucket=openweave \
39-
--local-dir=$TRAVIS_BUILD_DIR/happy-test-logs --upload-dir=happy-test-log/$TRAVIS_BUILD_NUMBER \
39+
--local-dir=$TRAVIS_BUILD_DIR/build_artifacts --upload-dir=happy-test-log/$TRAVIS_BUILD_NUMBER \
4040
--acl=public-read --skip_cleanup=true

.travis/before_install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ case "${BUILD_TARGET}" in
160160

161161
installdeps "happy-deps"
162162

163+
# install lcov
164+
sudo apt-get update
165+
sudo apt-get install lcov
166+
163167
cd $HOME
164168
git clone https://github.com/openweave/happy.git
165169
cd ${HOME}/happy

.travis/script.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ die()
3838
###############################################################
3939
gcc_check_happy()
4040
{
41-
cmd_start="sudo make -f Makefile-Standalone DEBUG=1 TIMESTAMP=1 COVERAGE=1 "
42-
cmd_end="BuildJobs=24 check"
41+
cmd_start="sudo make -f Makefile-Standalone DEBUG=1 TIMESTAMP=1 COVERAGE=1"
42+
cmd_end="BuildJobs=24 coverage"
4343

4444
if [ "lwip" in "${BUILD_TARGET}" ];then
4545
build_cmd="$cmd_start USE_LWIP=1 $cmd_end"
@@ -49,11 +49,13 @@ gcc_check_happy()
4949
build_folder="x86_64-unknown-linux-gnu"
5050
fi
5151

52-
mkdir -p $TRAVIS_BUILD_DIR/happy-test-logs/$1
52+
mkdir -p $TRAVIS_BUILD_DIR/build_artifacts/$1
5353
eval $build_cmd
5454
make_status=${?}
55-
cp $TRAVIS_BUILD_DIR/build/$build_folder/src/test-apps/happy $TRAVIS_BUILD_DIR/happy-test-logs/$1 -rf
55+
cp $TRAVIS_BUILD_DIR/build/$build_folder/src/test-apps/happy $TRAVIS_BUILD_DIR/build_artifacts/$1 -rf
56+
cp $TRAVIS_BUILD_DIR/build/$build_folder/src/test-apps/*.lcov $TRAVIS_BUILD_DIR/build_artifacts/$1 -rf
5657
echo "please check happy-test-log/<UTC time> under link: https://storage.cloud.google.com/openweave"
58+
ls $TRAVIS_BUILD_DIR/build_artifacts/$1/
5759
return ${make_status}
5860
}
5961

0 commit comments

Comments
 (0)