summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 3d43a0c971f4d0ae3190231e8c495c85453ddbbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: c

os:
  - linux

compiler:
  - gcc

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 --enable-gcov

script:
  - 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