From 9685f402535e632368eedea10b5aaaadc0ab382b Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Fri, 20 Oct 2017 01:11:32 -0400 Subject: [PATCH] ci: Run each test-suite independently and label associated coverage report See #159 Suggested-by: Andrew Tritt --- .circleci/config.yml | 8 ++++++-- .travis.yml | 8 ++++++-- appveyor.yml | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 03e267123..77389cb39 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,8 +34,12 @@ jobs: pip3 install -r requirements.txt pip3 install -r requirements-dev.txt pip3 install -e . - coverage run --source src test.py - codecov + coverage run --source src test.py --pynwb + codecov -F pynwb + coverage run --source src test.py --integration + codecov -F integration + coverage run --source src test.py --form + codecov -F form - run: name: Test installation from a wheel for Python 2.7 command: | diff --git a/.travis.yml b/.travis.yml index 814cb731d..29a8d7318 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,5 +31,9 @@ after_success: - pip install -r requirements.txt - pip install -r requirements-dev.txt - pip install -e . - - coverage run --source src test.py - - codecov + - coverage run --source src test.py --pynwb + - codecov -F pynwb + - coverage run --source src test.py --integration + - codecov -F integration + - coverage run --source src test.py --form + - codecov -F form diff --git a/appveyor.yml b/appveyor.yml index eba274bf1..4ab017342 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -33,8 +33,12 @@ test_script: - python %APPVEYOR_BUILD_FOLDER%\test.py after_test: - - coverage run --source %APPVEYOR_BUILD_FOLDER%\src %APPVEYOR_BUILD_FOLDER%\test.py - - codecov + - coverage run --source %APPVEYOR_BUILD_FOLDER%\src %APPVEYOR_BUILD_FOLDER%\test.py --pynwb + - codecov -F pynwb + - coverage run --source %APPVEYOR_BUILD_FOLDER%\src %APPVEYOR_BUILD_FOLDER%\test.py --integration + - codecov -F integration + - coverage run --source %APPVEYOR_BUILD_FOLDER%\src %APPVEYOR_BUILD_FOLDER%\test.py --form + - codecov -F form - pip install -U %APPVEYOR_BUILD_FOLDER%\dist\%WHEEL% - python %APPVEYOR_BUILD_FOLDER%\test.py - pip install -U %APPVEYOR_BUILD_FOLDER%\dist\pynwb-0.1.tar.gz