Commit fa20bb0131333e84acfdac80962aca3496153990

Martin Mitas 2016-10-03T23:11:00

.trevis.yml: Create coverage data and upload them to coverage.io.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/.travis.yml b/.travis.yml
index 9ffc7ce..3040764 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,11 +9,13 @@ compiler:
 before_script:
     - mkdir build
     - cd build
-    - cmake -G 'Unix Makefiles' ..
+    - CFLAGS='-g -O0 --coverage' cmake -G 'Unix Makefiles' ..
 
 script:
     - make
 
 after_success:
     - sudo apt-get install python3
+    - pip install --user cpp-coveralls
     - ../scripts/run-commonmark-tests.sh
+    - coveralls -r md4c