Skip to content

Commit

Permalink
ci: optimising Homebrew setup
Browse files Browse the repository at this point in the history
Stopped Mac CI jobs from updating dependencies since this was increasing setup time
  • Loading branch information
emmacasolin committed Jul 12, 2022
1 parent 4a2f366 commit d95e516
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions scripts/build:platforms-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ variables:
TS_CACHED_TRANSPILE_PORTABLE: "true"
# Homebrew cache only used by macos runner
HOMEBREW_CACHE: "${CI_PROJECT_DIR}/tmp/Homebrew"
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: "true"
# Cached directories shared between jobs & pipelines per-branch per-runner
cache:
key: $CI_COMMIT_REF_SLUG
when: 'always'
paths:
- ./tmp/npm/
- ./tmp/ts-node-cache/
Expand Down Expand Up @@ -158,6 +158,8 @@ cat << "EOF"
variables:
HOMEBREW_NO_INSTALL_UPGRADE: "true"
HOMEBREW_NO_INSTALL_CLEANUP: "true"
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: "true"
HOMEBREW_NO_AUTO_UPDATE: "true"
before_script:
- mkdir -p "$CI_PROJECT_DIR/tmp"
- eval "$(brew shellenv)"
Expand All @@ -167,7 +169,7 @@ cat << "EOF"
script:
- npm install --ignore-scripts
- export PATH="$(npm bin):$PATH"
- npm test -- --ci --shard=$CI_NODE_INDEX/$CI_NODE_TOTAL --runInBand
- npm test -- --ci --shard=$CI_NODE_INDEX/$CI_NODE_TOTAL --maxWorkers=50%
artifacts:
when: always
reports:
Expand Down
1 change: 0 additions & 1 deletion tests/setup.ts
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
console.log('\nTEST SETUP');

0 comments on commit d95e516

Please sign in to comment.