Skip to content

Commit

Permalink
Cache gems installed on travis
Browse files Browse the repository at this point in the history
Signed-off-by: Jenny Lea <[email protected]>
  • Loading branch information
Brian Butz authored and textbook committed May 13, 2020
1 parent 1ff7238 commit 49573a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ language: minimal

dist: bionic

cache:
directories:
- .bundler_cache

addons:
apt:
sources:
Expand All @@ -17,7 +21,7 @@ jobs:
- stage: "Test"
name: "All Tests"
script:
- docker run -v "$TRAVIS_BUILD_DIR":/postfacto postfacto/dev:2.6.3-12.6.0 /bin/bash -c "cd /postfacto && npm config set user 0 && npm config set unsafe-perm true && ./deps.sh && EPHEMERAL_CONTAINER=true ./test.sh"
- docker run -v $TRAVIS_BUILD_DIR/.bundler_cache:/bundler_cache -v "$TRAVIS_BUILD_DIR":/postfacto -e BUNDLE_PATH=/bundler_cache postfacto/dev:2.6.3-12.6.0 /bin/bash -c "cd /postfacto && npm config set user 0 && npm config set unsafe-perm true && ./deps.sh && EPHEMERAL_CONTAINER=true ./test.sh"
- stage: "Package"
- name: "Build & Deploy Docker"
script:
Expand Down

0 comments on commit 49573a4

Please sign in to comment.