Move libraries version info to the beginning of Makefile.am
[platform/upstream/libatomic_ops.git] / .travis.yml
1 language: c
2
3 os:
4   - linux
5   - osx
6
7 compiler:
8   - clang
9   - gcc
10
11 env:
12   - CFLAGS_EXTRA_M=
13   - CFLAGS_EXTRA="-O3 -march=native"
14       CONF_ASSERTIONS=--enable-assertions
15   - CFLAGS_EXTRA_M=-m32
16       CFLAGS_EXTRA="-march=native"
17       CONF_ASSERTIONS=--enable-assertions
18
19 matrix:
20   exclude:
21   - os: osx
22     compiler: gcc
23
24 sudo: required
25
26 before_install:
27   - if [[ "$TRAVIS_OS_NAME" == "linux" && "$CFLAGS_EXTRA_M" == "-m32" ]]; then
28       sudo apt-get install gcc-multilib;
29     fi
30
31 install:
32   - ./autogen.sh
33
34 script:
35   - ./configure $CONF_ASSERTIONS
36   - make -j check CFLAGS_EXTRA="$CFLAGS_EXTRA $CFLAGS_EXTRA_M"
37   - if [ -f tests/test_atomic.log ]; then cat tests/test_atomic*.log; fi