From 6e83960d9f6e83f68c66ce46de7d8adee6ee5109 Mon Sep 17 00:00:00 2001 From: David Hyman Date: Thu, 11 Jan 2018 15:57:48 +0000 Subject: [PATCH 1/4] attempt to add coverage to circleci --- circle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index ea331126..510e44a1 100644 --- a/circle.yml +++ b/circle.yml @@ -1,7 +1,7 @@ test: override: - mbed --version - - py.test test + - py.test test --cov=./mbed --cov-branch --cov-report html:${CIRCLE_ARTIFACTS}/coverage_output --cov-report term --durations=20 --color=yes - mbed toolchain -G GCC_ARM - mbed target -G K64F - mbed config -G protocol ssh @@ -76,7 +76,7 @@ test: dependencies: pre: - - sudo pip install pytest + - sudo pip install pytest pytest-cov - git config --global user.email "test@mbed.org" - git config --global user.name "mbed Test" - echo -e "[ui]\nusername = mbed Test \n" > ~/.hgrc From f6411c430528c892327b8fefca7d31746cfca42c Mon Sep 17 00:00:00 2001 From: David Hyman Date: Thu, 11 Jan 2018 16:30:32 +0000 Subject: [PATCH 2/4] Update circle.yml --- circle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 510e44a1..c0a83d0d 100644 --- a/circle.yml +++ b/circle.yml @@ -1,7 +1,7 @@ test: override: - mbed --version - - py.test test --cov=./mbed --cov-branch --cov-report html:${CIRCLE_ARTIFACTS}/coverage_output --cov-report term --durations=20 --color=yes + - py.test test --cov=mbed --cov-branch --cov-report html:${CIRCLE_ARTIFACTS}/coverage_output --cov-report term --durations=20 --color=yes - mbed toolchain -G GCC_ARM - mbed target -G K64F - mbed config -G protocol ssh From 37d67df4c9acf755d0b7e4713c374fbe64dcb6e5 Mon Sep 17 00:00:00 2001 From: David Hyman Date: Thu, 11 Jan 2018 16:41:49 +0000 Subject: [PATCH 3/4] add coveralls will need COVERALLS_REPO_TOKEN set in circleci --- circle.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index c0a83d0d..62c9a5d4 100644 --- a/circle.yml +++ b/circle.yml @@ -1,7 +1,8 @@ test: override: - mbed --version - - py.test test --cov=mbed --cov-branch --cov-report html:${CIRCLE_ARTIFACTS}/coverage_output --cov-report term --durations=20 --color=yes + - py.test test --cov=. --cov-branch --cov-report html:${CIRCLE_ARTIFACTS}/coverage_output --cov-report term --durations=20 --color=yes + - coveralls - mbed toolchain -G GCC_ARM - mbed target -G K64F - mbed config -G protocol ssh @@ -76,7 +77,7 @@ test: dependencies: pre: - - sudo pip install pytest pytest-cov + - sudo pip install pytest pytest-cov coveralls - git config --global user.email "test@mbed.org" - git config --global user.name "mbed Test" - echo -e "[ui]\nusername = mbed Test \n" > ~/.hgrc From 10de503fa7f518975223ed5ea992e0c754b0ec44 Mon Sep 17 00:00:00 2001 From: David Hyman Date: Fri, 12 Jan 2018 12:19:13 +0000 Subject: [PATCH 4/4] Update circle.yml --- circle.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/circle.yml b/circle.yml index 62c9a5d4..dc2a309b 100644 --- a/circle.yml +++ b/circle.yml @@ -74,7 +74,6 @@ test: mbed export -S - dependencies: pre: - sudo pip install pytest pytest-cov coveralls