summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-05-23 14:37:01 -0700
committerGarrett D'Amore <garrett@damore.org>2018-05-23 14:37:01 -0700
commit260348a5d50e9e0c46ca534e3bd4b5d545a402cf (patch)
treeecce86d63bcbfb40d1b16daf410415b7f6837608
parent5395cb347be03d78c8f616036b7cdda1dacab71b (diff)
downloadnanomsg-260348a5d50e9e0c46ca534e3bd4b5d545a402cf.tar.gz
Separate coverage into separate step.
-rw-r--r--.circleci/config.yml36
1 files changed, 29 insertions, 7 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 7c41aff..fdbb1ad 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -4,7 +4,7 @@
#
version: 2.0
jobs:
- "clang - build, test":
+ "clang6 - build, test":
docker:
- image: ubuntu:16.04
environment:
@@ -20,21 +20,20 @@ jobs:
- run: >
apt-get install -y --allow-unauthenticated
build-essential
- curl
asciidoctor
cmake
ninja-build
clang-6.0
- run: ./.circleci/build-and-test.sh
- "gcc - build, test, coverage":
+ "gcc8 - build, test":
docker:
- image: ubuntu:16.04
environment:
CC: gcc-8
CXX: g++-8
- COVERAGE: "ON"
GCOV: gcov-8
+ CTEST_OUTPUT_ON_FAILURE: 1
steps:
- checkout
- run: apt-get update -qq
@@ -44,18 +43,41 @@ jobs:
- run: >
apt-get install -y --allow-unauthenticated
build-essential
- curl
asciidoctor
cmake
ninja-build
gcc-8
g++-8
- run: ./.circleci/build-and-test.sh
+
+ "gcc - coverage":
+ docker:
+ - image: ubuntu:16.04
+ environment:
+ CC: gcc
+ CXX: g++
+ COVERAGE: "ON"
+ GCOV: gcov
+ CTEST_OUTPUT_ON_FAILURE: 1
+ - checkout
+ - run: apt-get update -qq
+ - run: apt-get install -y software-properties-common
+ - run: add-apt-repository ppa:ubuntu-toolchain-r/test
+ - run: apt-get update -qq
+ - run: >
+ apt-get install -y --allow-unauthenticated
+ build-essential
+ curl
+ asciidoctor
+ cmake
+ ninja-build
+ - run: ./.circleci/build-and-test.sh
- run: ./.circleci/codecov.sh
workflows:
version: 2
build_and_test:
jobs:
- - "clang - build, test"
- - "gcc - build, test, coverage"
+ - "clang6 - build, test"
+ - "gcc8 - build, test"
+ - "gcc - coverage"