aboutsummaryrefslogtreecommitdiff
path: root/deps/md4c/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to 'deps/md4c/.travis.yml')
-rw-r--r--deps/md4c/.travis.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/deps/md4c/.travis.yml b/deps/md4c/.travis.yml
new file mode 100644
index 0000000..66ba337
--- /dev/null
+++ b/deps/md4c/.travis.yml
@@ -0,0 +1,36 @@
+# YAML definition for travis-ci.com continuous integration.
+# See https://docs.travis-ci.com/user/languages/c
+arch:
+ - amd64
+ - ppc64le
+language: c
+dist: bionic
+
+compiler:
+ - gcc
+
+addons:
+ apt:
+ packages:
+ - python3 # for running tests
+ - lcov # for generating code coverage report
+
+before_script:
+ - mkdir build
+ - cd build
+ # We enforce -Wdeclaration-after-statement because Qt project needs to
+ # build MD4C with Integrity compiler which chokes whenever a declaration
+ # is not at the beginning of a block.
+ - CFLAGS='--coverage -g -O0 -Wall -Wdeclaration-after-statement -Werror' cmake -DCMAKE_BUILD_TYPE=Debug -G 'Unix Makefiles' ..
+
+script:
+ - make VERBOSE=1
+
+after_success:
+ - ../scripts/run-tests.sh
+ # Creating report
+ - lcov --directory . --capture --output-file coverage.info # capture coverage info
+ - lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter out system
+ - lcov --list coverage.info # debug info
+ # Uploading report to CodeCov
+ - bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"