summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 8c477aa7ef1c72f5f899be2ba73d4128ce8729c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
sudo: false

language: c

addons:
    apt:
        packages:
            - libonig-dev
            - valgrind

before_install:
    - rm lexer.h lexer.c parser.h parser.c

install:
    - bundle install --gemfile=docs/Gemfile

    - wget http://ftp.debian.org/debian/pool/main/b/bison/bison_3.0.2.dfsg-2_amd64.deb
    - ar p bison_3.0.2.dfsg-2_amd64.deb data.tar.xz | tar xJ

    - wget http://ftp.debian.org/debian/pool/main/libo/libonig/libonig-dev_5.9.6-1_amd64.deb
    - ar p libonig-dev_5.9.6-1_amd64.deb data.tar.xz | tar xJ
    - wget http://ftp.debian.org/debian/pool/main/libo/libonig/libonig2_5.9.6-1_amd64.deb
    - ar p libonig2_5.9.6-1_amd64.deb data.tar.xz | tar xJ
    - mv usr/lib/x86_64-linux-gnu/libonig.so* usr/lib

    - valgrind --version

before_script:
    - autoreconf -i
    - ./configure
        --with-oniguruma=usr
        YACC="usr/bin/bison -y"

script:
    - make -j4
        LDFLAGS="-Lusr/lib -R$(pwd)/usr/lib"
        BISON_PKGDATADIR=$(pwd)/usr/share/bison
    - make check -j4

after_failure:
    - cat test-suite.log
    - cat tests/*.log

compiler:
    - gcc
    - clang

notifications:
    email: false