Add option to run tests with Valgrind memcheck
[tig.git] / .travis.yml
blobc4520fc6135d65312b6c40853ff68d95544bdd5b
1 language: c
3 compiler:
4   - clang
5   - gcc
7 before_install: sudo apt-get update -qq
9 install: sudo apt-get install -qq --no-install-recommends asciidoc xmlto docbook-utils valgrind
11 script:
12   - # ============ Build from config ===============
13   - cp contrib/config.make .
14   - make DESTDIR=/tmp/bare-prefix all-debug install install-doc
15   - make test
16   - make test TEST_OPTS=valgrind
17   - make distclean
18   - # ============ Build using autoconf ============
19   - make dist
20   - ./configure --prefix=/tmp/conf-prefix
21   - make V=1 TEST_SHELL=bash all test install install-doc
22   - make clean