Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 5e727d5

Browse files
committed
build(travis): use local jq tools
1 parent 370206c commit 5e727d5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ addons:
1111
- libgconf-2-4
1212

1313
before_install:
14-
- mkdir -p ~/bin && curl -sSL -o ~/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x ~/bin/jq
15-
- export PATH=$PATH:~/bin
16-
- jq --version
1714
- sudo chown -R travis ./travis/install_node.sh
1815
- sudo chmod +x ./travis/install_node.sh
1916
- ./travis/install_node.sh
@@ -34,7 +31,9 @@ before_script:
3431
script:
3532
# - codecov
3633
- rm -rf .next
37-
- cp config/config.ci.json config/config.json
34+
- chmod +x ./utils/bin/jq-linux
35+
- ./utils/bin/jq-linux -s '.[0] * .[1]' config/config.json config/config.ci.json > /tmp/config.json
36+
- cp /tmp/config.json ./config/config.json
3837
- nvm exec 10.12.0 npm run build.ci
3938
- nvm exec 10.12.0 npm run test:ci
4039

0 commit comments

Comments
 (0)