Skip to content

Commit ce94626

Browse files
committed
Build jq from source.
- we need version 1.5 and can't get it from the official repo. - includes adjusting the PATH so that our tools (like jq) get precedence.
1 parent 45ece96 commit ce94626

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎.travis.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ addons:
1818
apt:
1919
packages:
2020
- tree
21+
2122
before_install:
2223
- rvm install 2.2.5
2324
- 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.
2429

2530
script:
2631
- bin/unit-tests.sh

‎bin/build-jq.sh‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+

0 commit comments

Comments
 (0)