From e7caf68eddef665713907464529df8a71e7d1429 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Thu, 23 Feb 2017 00:33:08 -0600 Subject: [PATCH] Attempt to use builtin Oniguruma for CIs --- .travis.yml | 2 +- Dockerfile | 16 +++------------- appveyor.yml | 5 +++-- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 922b165a..bcba4269 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,7 @@ before_script: - which bison - bison --version - autoreconf -if - - ./configure YACC="$(which bison) -y" $COVERAGE + - ./configure --with-oniguruma=builtin YACC="$(which bison) -y" $COVERAGE script: # When using the bison from Debian we need to tell that bison where diff --git a/Dockerfile b/Dockerfile index 4161b978..2a40fb1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,26 +16,17 @@ RUN apt-get update && \ ruby \ wget \ ruby-dev && \ - wget https://github.com/kkos/oniguruma/archive/v5.9.6.tar.gz -O onig-5.9.6.tar.gz && \ - sha512sum onig-5.9.6.tar.gz | grep 6b048d345e148c9da38af7a8df76d4a358eb3d4db91fa7834076e511f526a63544284f212b0d56badbbd33112c8b458a5fff02bfbbda012ecfe478bc436ea679 && \ - tar zxvf onig-5.9.6.tar.gz && \ - (cd oniguruma-5.9.6 && \ - touch NEWS ChangeLog && \ - autoreconf -i && \ - ./configure --prefix=/usr/local && \ - make && \ - make install ) && \ + git submodule init && \ + git submodule update && \ gem install bundler && \ (cd /app/docs && bundle install) && \ (cd /app && \ autoreconf -i && \ - ./configure --disable-valgrind --enable-all-static --prefix=/usr/local && \ + ./configure --with-oniguruma=builtin --disable-valgrind --enable-all-static --prefix=/usr/local && \ make -j8 && \ make check && \ make install && \ make distclean ) && \ - (cd oniguruma-5.9.6 && \ - make uninstall ) && \ apt-get purge -y \ build-essential \ autoconf \ @@ -46,7 +37,6 @@ RUN apt-get update && \ ruby \ ruby-dev && \ apt-get autoremove -y && \ - rm -rf oniguruma-5.9.6 && \ rm -rf /var/lib/apt/lists/* /var/lib/gems ENTRYPOINT ["/usr/local/bin/jq"] diff --git a/appveyor.yml b/appveyor.yml index e58981e7..3eb57227 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,12 +11,13 @@ install: - C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors" - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy" - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S autoconf automake bison flex" - - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-i686-oniguruma mingw-w64-x86_64-oniguruma" + - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S git" + - git submodule update --init --recursive build_script: - bash -lc "exec 0 jq.html" - 7z a jq-package.zip jq.1 jq.html jq.exe