summaryrefslogtreecommitdiff
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
parentd1ad2daa7e195c82e3e5423e31af90fb01f7307d (diff)
downloadlibatomic_ops-draft-coveralls-linux.tar.gz
DRAFT #20 - enable coveralls (linux/gcc)draft-coveralls-linux
-rw-r--r--.travis.yml24
-rw-r--r--appveyor.yml24
2 files changed, 19 insertions, 29 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
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index 69897d4..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-version: 7.5.0-{build}
-
-clone_depth: 50
-
-environment:
- MS_SDK_VER: v7.1
- matrix:
- - CPU: x86
- BLD: debug
- - CPU: x86
- BLD: release
- - CPU: x64
- BLD: debug
- - CPU: x64
- BLD: release
-
-install:
- - cmd: '"C:\Program Files\Microsoft SDKs\Windows\%MS_SDK_VER%\Bin\SetEnv.cmd" /%CPU% /%BLD%'
-
-build_script:
- - cmd: cd src && nmake -f Makefile.msft clean all && cd ..
-
-test_script:
- - cmd: cd src && nmake -f Makefile.msft test_malloc test_stack