Skip to content

Commit 14ba864

Browse files
committed
ci: Add caching for Ruby gems
1 parent 1523cb5 commit 14ba864

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.ci/deps.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ go get -u github.com/golang/lint/golint
4646
go get -u golang.org/x/tools/cmd/goimports
4747
go get -u sourcegraph.com/sqs/goreturns
4848
go get -u golang.org/x/tools/cmd/gotype
49-
go get -u github.com/kisielk/errcheck
49+
go get -u github.com/kisielk/errcheck
5050

5151
# Ruby commands
52-
bundle install
52+
bundle install --path=vendor/bundle --binstubs=vendor/bin --jobs=8 --retry=3
5353

5454
for dep_version in "${dep_versions[@]}" ; do
5555
pyenv install -ks $dep_version
@@ -87,7 +87,7 @@ julia -e "Pkg.add(\"Lint\")"
8787
sudo luarocks install luacheck --deps-mode=none
8888

8989
# Infer commands
90-
if [ ! -e ~/infer-linux64-v0.7.0/infer/bin ]; then
90+
if [ ! -e ~/infer-linux64-v0.7.0/infer/bin ]; then
9191
wget -nc -O ~/infer.tar.xz https://github.com/facebook/infer/releases/download/v0.7.0/infer-linux64-v0.7.0.tar.xz
9292
tar xf ~/infer.tar.xz -C ~/
9393
cd ~/infer-linux64-v0.7.0

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ site
3131
node_modules
3232
*.log
3333
*.jar
34+
.bundle
3435
.vendor
36+
vendor
3537
Goopfile.lock
3638
Gemfile.lock
3739
.Rhistory

circle.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ dependencies:
33
- ~/.pyenv/versions/3.4.3
44
- ~/.pyenv/versions/3.5.1
55
- ~/coala-bears/node_modules
6-
- ~/.rvm/gems/ruby-2.1.5/gems/
6+
- ~/coala-bears/.bundle
7+
- ~/coala-bears/vendor
78
- ~/.RLibrary
89
- ~/dart-sdk/bin
910
- ~/.cabal
@@ -16,6 +17,7 @@ dependencies:
1617
- ~/hlint_1.9.26-1_amd64.deb
1718
pre:
1819
- echo 'export PATH=$PATH:~/coala-bears/node_modules/.bin' >> ~/.circlerc
20+
- echo 'export PATH=$PATH:~/coala-bears/vendor/bin' >> ~/.circlerc
1921
- echo 'export LINTR_COMMENT_BOT=false' >> ~/.circlerc
2022
- echo 'export PATH=$PATH:~/dart-sdk/bin' >> ~/.circlerc
2123
- echo 'export PATH=$PATH:~/.cabal/bin' >> ~/.circlerc

0 commit comments

Comments
 (0)