]> granicus.if.org Git - jq/commitdiff
Make and build dist in travis-CI (#1356)
authorNicolas Williams <nico@cryptonector.com>
Fri, 3 Mar 2017 18:04:46 +0000 (12:04 -0600)
committerNicolas Williams <nico@cryptonector.com>
Sun, 5 Mar 2017 05:14:36 +0000 (23:14 -0600)
.travis.yml

index bcba426971037c4ca6fc478b82b76c481ea163b8..3940e720b8a860089c850acc8e4393c3d827720c 100644 (file)
@@ -55,6 +55,23 @@ script:
     - echo PATH=$PATH
     - which bison
     - make BISON_PKGDATADIR=$PWD/usr/share/bison src/parser.c || make src/parser.c
+    # Make dist!
+    #
+    # Make it first to fail the build early, before we test with
+    # valgrind.
+    - make dist
+    # Build and test the dist (without valgrind)
+    - |
+        (
+          tar xvf jq-`scripts/version`.tar.gz &&
+          cd jq-`scripts/version` &&
+          pwd &&
+          ./configure --disable-valgrind --with-oniguruma=builtin YACC="$(which bison) -y" $COVERAGE &&
+          make BISON_PKGDATADIR=$PWD/usr/share/bison src/parser.c || make src/parser.c &&
+          make -j4 &&
+          make check -j4 || true
+        )
+    # Build and test the HEAD
     - make -j4
     - make check -j4