summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-01-13 21:10:48 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-01-24 23:12:34 +0300
commitc50fb83f038a6e06afdf6b2dfc6868b364fb0511 (patch)
tree4dd215c990705114732c2de3dcd95c0875169e4f /.travis.yml
parentd1ad2daa7e195c82e3e5423e31af90fb01f7307d (diff)
downloadlibatomic_ops-draft-coveralls-linux.tar.gz
DRAFT #20 - enable coveralls (linux/gcc)draft-coveralls-linux
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml24
1 files changed, 19 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 10d0628..3d43a0c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,17 +2,31 @@ language: c
os:
- linux
- - osx
compiler:
- - clang
- gcc
-sudo: false
+sudo: required
+
+before_install:
+ - sudo apt-get install lcov
+ - gem install coveralls-lcov
+# - sudo apt-get install libc6:i386
+# - sudo apt-get install libc6-dev-i386
install:
- ./autogen.sh
- - ./configure --enable-assertions --enable-werror
+ - ./configure --enable-assertions --enable-werror --enable-gcov
script:
- - make -j check
+ - make clean && make -j check CFLAGS_EXTRA="-march=native"
+# - make -j check
+# - make clean && make -j check CFLAGS_EXTRA="-march=native -DAO_DISABLE_GCC_ATOMICS"
+# - make clean && make -j check CFLAGS_EXTRA="-march=native -m32"
+# - make clean && make -j check CFLAGS_EXTRA="-march=native -m32 -DAO_DISABLE_GCC_ATOMICS"
+
+after_success:
+ - lcov --directory src --capture --output-file coverage.info
+ - lcov --remove coverage.info 'tests/*' --output-file coverage.info
+ - lcov --list coverage.info
+ - coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info