Skip to content

Commit

Permalink
ci - install deps - limit install scripts to those needed for build
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Sep 23, 2019
1 parent e86cebd commit bc45ed0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- run:
name: Install deps
command: |
yarn --frozen-lockfile --har
.circleci/scripts/deps-install.sh
- run:
name: Collect yarn install HAR logs
command: |
Expand Down
12 changes: 12 additions & 0 deletions .circleci/scripts/deps-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -x

yarn --frozen-lockfile --har

# run each in subshell so directory change does not persist

# for build
(cd node_modules/node-sass && yarn run build)
(cd node_modules/optipng-bin && yarn run postinstall)
(cd node_modules/gifsicle && yarn run postinstall)
(cd node_modules/jpegtran-bin && yarn run postinstall)

0 comments on commit bc45ed0

Please sign in to comment.