-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcircle.yml
30 lines (30 loc) · 957 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: 2
jobs:
build:
docker:
- image: cimg/ruby:2.6.1
environment:
BUNDLER_VERSION: 2.0.1
steps:
- checkout
- run: apt update -y && apt-get install -y lsof
- run:
name: Install Bundler 2.0.1
command: gem install --no-doc bundler:2.0.1
- restore_cache:
keys:
- bundle-{{ checksum "Gemfile" }}-{{ checksum "valkyrie-shrine.gemspec" }}
- bundle- # used if checksum fails
- run:
name: Install dependencies
command: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs 4 --retry 3
- save_cache:
key: bundle-{{ checksum "Gemfile" }}-{{ checksum "valkyrie-shrine.gemspec" }}
paths:
- "vendor/bundle"
- run:
name: Run Rubocop
command: bundle exec rubocop
- run:
name: Run Specs
command: bundle exec rspec spec