diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2020-02-29 12:32:36 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2020-02-29 12:32:36 +0100 |
| commit | 1e99bd1e7da5b4e337d5067255d24926267dcf6d (patch) | |
| tree | f239a2de3484d4d0906a2702e27af8872e53ba53 /.travis.yml | |
| parent | 9e79f0cbfa074f7766f6fea04d41f7803c6cee58 (diff) | |
| download | newtype-1e99bd1e7da5b4e337d5067255d24926267dcf6d.tar.xz newtype-1e99bd1e7da5b4e337d5067255d24926267dcf6d.zip | |
build: enable code coverage support
Diffstat (limited to '.travis.yml')
| -rw-r--r-- | .travis.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 5091396..c5e6a8e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ addons: sources: - sourceline: "ppa:ubuntu-toolchain-r/test" packages: ['g++-9'] + packages: lcov compiler: - gcc @@ -26,6 +27,6 @@ install: script: - mkdir -p build - cd build - - cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=ON .. + - cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=YES -DRUN_TESTS_AFTER_BUILD=YES -DENABLE_CODE_COVERAGE=YES -DPRINT_COVERAGE_REPORT=YES .. - cmake --build . --target all - ctest |
