Skip to content

Commit

Permalink
(- ci fix) Rebuild node-jq as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ELLIOTTCABLE committed Mar 9, 2019
1 parent 02c28cf commit 7792436
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,24 @@ install:
# can set $VERBOSE to some value inside Travis's configuration, and then hit "rebuild".)
- if [ -n "$VERBOSE" ]; then npm config set loglevel verbose; fi

# Install dependencies, and then either install or build bs-platform
# Install npm dependencies, but avoid invoking our own `prepare` script
- npm ci --ignore-scripts

# (A horrible hack is necessary here, with which we *manually* apply any `postinstall` scripts of
# transitive dependencies. Yuck.)
# See: <https://npm.community/t/ignore-scripts-ignores-all-scripts/1403/10>
- npm rebuild node-jq

# Now we either select a particular `bs-platform` to install, or manually process the
# `postinstall` script of the one we installed above.
- |
if [ -n "$BS_PLATFORM" ]; then
npm install --no-save "bs-platform@$BS_PLATFORM"
else
npm rebuild bs-platform
fi
# Finally, we ‘install’ our own local `ppx-sedlex` version.
- npm install --ignore-scripts --no-save ./ppx-sedlex

script: npm run $TASK
Expand Down

0 comments on commit 7792436

Please sign in to comment.