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

add lcov report #372

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ deploy:
bucket: openweave
skip_cleanup: true
acl: public-read
upload-dir: happy-test-log/$TRAVIS_BUILD_NUMBER
local-dir: "$TRAVIS_BUILD_DIR/happy-test-logs"
upload-dir: openweave-core-build-artifacts/$TRAVIS_BUILD_NUMBER
local-dir: "$TRAVIS_BUILD_DIR/build_artifacts"
on:
repo: openweave/openweave-core
tags: true
Expand Down
2 changes: 1 addition & 1 deletion .travis/after_failure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ bundle update

dpl --provider=gcs --access-key-id=GOOGNPZYTVTEPZM5VBRAVVUU \
--secret-access-key=$GCSKEY --bucket=openweave \
--local-dir=$TRAVIS_BUILD_DIR/happy-test-logs --upload-dir=happy-test-log/$TRAVIS_BUILD_NUMBER \
--local-dir=$TRAVIS_BUILD_DIR/build_artifacts --upload-dir=happy-test-log/$TRAVIS_BUILD_NUMBER \
--acl=public-read --skip_cleanup=true
4 changes: 4 additions & 0 deletions .travis/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ case "${BUILD_TARGET}" in

installdeps "happy-deps"

# install lcov
sudo apt-get update
sudo apt-get install lcov

cd $HOME
git clone https://github.com/openweave/happy.git
cd ${HOME}/happy
Expand Down
14 changes: 10 additions & 4 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ die()
###############################################################
gcc_check_happy()
{
cmd_start="sudo make -f Makefile-Standalone DEBUG=1 TIMESTAMP=1 COVERAGE=1 "
cmd_end="BuildJobs=24 check"
cmd_start="sudo make -f Makefile-Standalone DEBUG=1 TIMESTAMP=1 COVERAGE=1"
cmd_end="BuildJobs=24 coverage"

if [ "lwip" in "${BUILD_TARGET}" ];then
build_cmd="$cmd_start USE_LWIP=1 $cmd_end"
Expand All @@ -49,11 +49,17 @@ gcc_check_happy()
build_folder="x86_64-unknown-linux-gnu"
fi

mkdir -p $TRAVIS_BUILD_DIR/happy-test-logs/$1
mkdir -p $TRAVIS_BUILD_DIR/build_artifacts/$1
eval $build_cmd
make_status=${?}
cp $TRAVIS_BUILD_DIR/build/$build_folder/src/test-apps/happy $TRAVIS_BUILD_DIR/happy-test-logs/$1 -rf
cp $TRAVIS_BUILD_DIR/build/$build_folder/src/test-apps/happy $TRAVIS_BUILD_DIR/build_artifacts/$1 -rf
echo "please check happy-test-log/<UTC time> under link: https://storage.cloud.google.com/openweave"
cp $TRAVIS_BUILD_DIR/build/$build_folder/src/test-apps/*.lcov $TRAVIS_BUILD_DIR/build_artifacts/$1 -rf
echo "===========ls build_artifacts x86 folder==============="
ls $TRAVIS_BUILD_DIR/build_artifacts/$1
echo "===========ls happy==============="
ls $TRAVIS_BUILD_DIR/build_artifacts/$1/happy/

return ${make_status}
}

Expand Down