travis: test against recent memcached
[m6w6/libmemcached] / .travis.yml
1 services:
2 - memcached
3
4 addons:
5 apt:
6 packages:
7 - python-sphinx
8 - valgrind
9 - libevent-dev
10 - libsasl2-dev
11
12 dist: bionic
13 language: cpp
14 compiler:
15 - gcc
16 - clang
17
18 env:
19 - BUILD=Release SASL=false
20 - BUILD=Debug SASL=true PREFIX=/opt PORT=11212 MC_VERSION=1.5.22
21 - BUILD=Debug SASL=false PREFIX=/opt PORT=11212 MC_VERSION=1.6.6
22
23 #before_install:
24 install:
25 - |
26 if ${SASL} || test -n "$MC_VERSION";
27 then
28 git clone -b ${MC_VERSION:-1.5.22} https://github.com/memcached/memcached &&
29 cd memcached && ./autogen.sh &&
30 CFLAGS="-O2 -pipe" ./configure --prefix=${PREFIX} --disable-dependency-tracking --enable-sasl --enable-sasl-pwdb --disable-coverage --disable-docs &&
31 make -j2 && make install && cd ..;
32 ${PREFIX}/bin/memcached -l 127.0.0.1 -p ${PORT} -U ${PORT} -m 128 &
33 fi;
34
35
36 before_script:
37 - echo stats settings | nc -q 0 localhost ${PORT:-11211} | column -t
38 - mkdir build
39
40 script:
41 - cd build
42 - cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=${BUILD} -DENABLE_SASL=${SASL} -DMEMCACHED_BINARY=${PREFIX:-/usr}/bin/memcached ..
43 - make -j2
44 - make test
45 - make install DESTDIR=.
46
47 #before_cache:
48 #after_success:
49
50 after_failure:
51 - cat Testing/Temporary/LastTest.log
52
53 #after_script: