File tree Expand file tree Collapse file tree 1 file changed +55
-3
lines changed Expand file tree Collapse file tree 1 file changed +55
-3
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
3
jobs :
4
- build :
4
+ bundle :
5
5
docker :
6
- - image : circleci/ruby:2.6.6
6
+ - image : circleci/ruby:2.7.1
7
7
working_directory : /mnt/ramdisk
8
8
steps :
9
9
- checkout
10
- - run : bundle install
10
+ - restore_cache :
11
+ keys :
12
+ - bundler-{{ checksum "diffcrypt.gemspec" }}-{{ .Environment.CACHE_VERSION }}
13
+ - run :
14
+ name : bundle install
15
+ command : |
16
+ gem install bundler -v '2.1.4'
17
+ bundle install --path=vendor/bundle --jobs=4 --retry=3
18
+ - save_cache :
19
+ key : bundler-{{ checksum "diffcrypt.gemspec" }}-{{ .Environment.CACHE_VERSION }}
20
+ paths :
21
+ - vendor/bundle
22
+
23
+ test :
24
+ docker :
25
+ - image : circleci/ruby:2.7.1
26
+ working_directory : /mnt/ramdisk
27
+ steps :
28
+ - checkout
29
+ - restore_cache :
30
+ keys :
31
+ - bundler-{{ checksum "diffcrypt.gemspec" }}-{{ .Environment.CACHE_VERSION }}
32
+ - run :
33
+ name : bundle install
34
+ command : |
35
+ gem install bundler -v '2.1.4'
36
+ bundle install --path=vendor/bundle --jobs=4 --retry=3
11
37
- run :
12
38
name : Setup Code Climate test-reporter
13
39
command : |
20
46
./cc-test-reporter before-build
21
47
bundle exec rake test
22
48
./cc-test-reporter after-build --coverage-input-type lcov --exit-code $?
49
+ rubocop :
50
+ docker :
51
+ - image : circleci/ruby:2.7.1
52
+ working_directory : /mnt/ramdisk
53
+ steps :
54
+ - checkout
55
+ - restore_cache :
56
+ keys :
57
+ - bundler-{{ checksum "diffcrypt.gemspec" }}-{{ .Environment.CACHE_VERSION }}
58
+ - run :
59
+ name : bundle install
60
+ command : |
61
+ gem install bundler -v '2.1.4'
62
+ bundle install --path=vendor/bundle --jobs=4 --retry=3
23
63
- run :
24
64
name : rubocop
25
65
command : bundle exec rubocop
26
66
when : always
67
+
68
+ workflows :
69
+ version : 2
70
+ all :
71
+ jobs :
72
+ - bundle
73
+ - test :
74
+ requires :
75
+ - bundle
76
+ - rubocop :
77
+ requires :
78
+ - bundle
You can’t perform that action at this time.
0 commit comments