Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make circleci use bundler from gemlock file
Browse files Browse the repository at this point in the history
Colt Borg committed Sep 15, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 96e1d2f commit 8f415e6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -19,6 +19,12 @@ jobs:
command: |
curl -sSL "https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.xz" | sudo tar --strip-components=2 -xJ -C /usr/local/bin/ node-v14.15.0-linux-x64/bin/node
curl https://www.npmjs.com/install.sh | sudo bash
- run:
name: "Configure Bundler"
command: |
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
source $BASH_ENV
gem install bundler
- restore_cache:
keys:
- v1-bundler-{{ checksum "Gemfile.lock" }}
@@ -43,6 +49,12 @@ jobs:
<<: *defaults
steps:
- checkout
- run:
name: "Configure Bundler"
command: |
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
source $BASH_ENV
gem install bundler
- restore_cache:
keys:
- v1-bundler-{{ checksum "Gemfile.lock" }}
@@ -61,6 +73,12 @@ jobs:
command: |
curl -sSL "https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.xz" | sudo tar --strip-components=2 -xJ -C /usr/local/bin/ node-v14.15.0-linux-x64/bin/node
curl https://www.npmjs.com/install.sh | sudo bash
- run:
name: "Configure Bundler"
command: |
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
source $BASH_ENV
gem install bundler
- restore_cache:
keys:
- v1-bundler-{{ checksum "Gemfile.lock" }}

0 comments on commit 8f415e6

Please sign in to comment.