Sfoglia il codice sorgente

Merge pull request #309 from jtigger/build-jq-in-ci

Build jq from source.
FridaTveit 9 anni fa
parent
commit
1eb0b2c6d2
2 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  1. 5
    0
      .travis.yml
  2. 11
    0
      bin/build-jq.sh

+ 5
- 0
.travis.yml Vedi File

18
   apt:
18
   apt:
19
     packages:
19
     packages:
20
       - tree
20
       - tree
21
+
21
 before_install:
22
 before_install:
22
   - rvm install 2.2.5
23
   - rvm install 2.2.5
23
   - rvm use 2.2.5
24
   - rvm use 2.2.5
25
+  - bin/build-jq.sh  # we want jq 1.5 features; not avail through pkg repo.
26
+
27
+before_script:
28
+  - export PATH=$TRAVIS_BUILD_DIR/bin:$PATH  # ensure our tools are prefered over included ones.
24
 
29
 
25
 script:
30
 script:
26
   - bin/unit-tests.sh
31
   - bin/unit-tests.sh

+ 11
- 0
bin/build-jq.sh Vedi File

1
+#!/usr/bin/env bash
2
+set -ex
3
+
4
+pushd bin
5
+curl --location https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz >jq-1.5.tar.gz
6
+tar xvf jq-1.5.tar.gz
7
+cd jq-1.5
8
+./configure --disable-maintainer-mode && make
9
+mv jq ..
10
+popd
11
+