Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: try caching node_modules folders
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Sep 24, 2020
1 parent f761383 commit a2844b9
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ branches:
- /^release\/.*$/

stages:
- install
- check
- test
- release-rc
Expand All @@ -23,6 +24,21 @@ os:
- osx
- windows

# cache all the node modules
cache:
directories:
- node_modules
- packages/interface-ipfs-core/node_modules
- packages/ipfs/node_modules
- packages/ipfs-cli/node_modules
- packages/ipfs-core-utils/node_modules
- packages/ipfs-http-client/node_modules
- packages/ipfs-http-gateway/node_modules
- packages/ipfs-http-server/node_modules
- packages/ipfs-message-port-client/node_modules
- packages/ipfs-message-port-protocol/node_modules
- packages/ipfs-message-port-server/node_modules

env:
# This stops Windows builds from hanging
# https://travis-ci.community/t/timeout-after-build-finished-and-succeeded/1336
Expand All @@ -45,7 +61,8 @@ before_install:
# only run jobs in packages that have changed since master in PR builds
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export RUN_SINCE='--since master' ; fi

script: npm run test:node -- $RUN_SINCE -- -- --timeout 10000 --bail
# disable auto-install as we will do one install step and cache the results
install: true

jobs:
allow_failures:
Expand All @@ -58,6 +75,12 @@ jobs:
- name: external - ipfs-log
- name: external - sidetree
include:

# manual install step, we do this to cache the installed files for subsequent steps
- stage: install
script:
- npm install

- stage: check
name: deps
script:
Expand Down

0 comments on commit a2844b9

Please sign in to comment.