add changelog for 1.13
[beanstalkd.git] / .travis.yml
blob0728104bd32d82b1a81e9d72bc29876cde75378d
1 branches:
2     only:
3         - master
5 git:
6     quiet: true
7     depth: 5
9 language: c
11 addons:
12     apt:
13       packages:
14           - lcov
16 compiler:
17     - clang
18     - gcc
20 os:
21     - linux
22     - osx
24 env:
25     global:
26         - MAKEJOBS="-j$(getconf _NPROCESSORS_ONLN)"
27         - TRAVIS_COMMIT_LOG=`git log --format=fuller -2`
28         - COVERAGE=OFF # Currently works only with gcc on linux
30 before_script:
31     - '[[ "${TRAVIS_OS_NAME}-${TRAVIS_COMPILER}" != "linux-gcc" ]] || export COVERAGE="ON"'
33 script:
34     - |
35       if [ $COVERAGE = "ON" ]; then
36           export LDFLAGS=" -lgcov --coverage"
37           export CFLAGS="-O0 -ggdb -fprofile-arcs -ftest-coverage"
38       fi
39     - make $MAKEJOBS || ( echo "Build failure. Verbose build follows." && make V=1 ; false )
40     - make check -j1 VERBOSE=1
42 jobs:
43   include:
44     - stage: Benchmark
45       os: linux
46       compiler: gcc
47       before_script:
48           - export COVERAGE=OFF
49       script:
50           - make $MAKEJOBS
51           - make $MAKEJOBS bench
52     - stage: Benchmark
53       os: linux
54       compiler: gcc
55       env:
56           - CFLAGS="-march=native -mtune=native -O3"
57       before_script:
58           - export COVERAGE=OFF
59       script:
60           - make $MAKEJOBS
61           - make $MAKEJOBS bench
62     - stage: Benchmark
63       os: osx
64       compiler: clang
65       env:
66           - CFLAGS="-march=native -mtune=native -O3"
67       before_script:
68           - export COVERAGE=OFF
69       script:
70           - make $MAKEJOBS
71           - make $MAKEJOBS bench
72     - stage: Benchmark
73       os: osx
74       compiler: clang
75       before_script:
76           - export COVERAGE=OFF
77       script:
78           - make $MAKEJOBS
79           - make $MAKEJOBS bench
81 after_success:
82     - '[[ "$COVERAGE" != "ON" ]] || bash <(curl -s https://codecov.io/bash)'
84 after_script:
85     - printf "$TRAVIS_COMMIT_RANGE\n"
86     - printf "$TRAVIS_COMMIT_LOG\n"