travis: fix working dir
[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
21
22 #before_install:
23 install:
24 - |
25 if ${SASL};
26 then
27 git clone -b 1.5.9 https://github.com/memcached/memcached &&
28 cd memcached && ./autogen.sh &&
29 CFLAGS="-O2 -pipe" ./configure --prefix=${PREFIX} --disable-dependency-tracking --enable-sasl --enable-sasl-pwdb --disable-coverage --disable-docs &&
30 make -j2 && make install;
31 cd .. && ${PREFIX}/bin/memcached -l 127.0.0.1 -p ${PORT} -U ${PORT} -m 128 &
32 fi;
33
34
35 before_script:
36 - echo stats settings | nc -q 0 localhost ${PORT:-11211} | column -t
37 - mkdir build
38
39 script:
40 - cd build
41 - cmake -DCMAKE_BUILD_TYPE=${BUILD} -DENABLE_SASL=${SASL} -DMEMCACHED_BINARY=${PREFIX:-/usr}/bin/memcached ..
42 - make -j2
43 - make test
44 - make install DESTDIR=.
45
46 #before_cache:
47 #after_success:
48
49 after_failure:
50 - cat Testing/Temporary/LastTest.log
51
52 #after_script: