Skip to content

Commit

Permalink
ci: Add caching for Ruby gems
Browse files Browse the repository at this point in the history
  • Loading branch information
underyx committed Sep 9, 2016
1 parent 1523cb5 commit 14ba864
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .ci/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ go get -u github.com/golang/lint/golint
go get -u golang.org/x/tools/cmd/goimports
go get -u sourcegraph.com/sqs/goreturns
go get -u golang.org/x/tools/cmd/gotype
go get -u github.com/kisielk/errcheck
go get -u github.com/kisielk/errcheck

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

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

# Infer commands
if [ ! -e ~/infer-linux64-v0.7.0/infer/bin ]; then
if [ ! -e ~/infer-linux64-v0.7.0/infer/bin ]; then
wget -nc -O ~/infer.tar.xz https://github.com/facebook/infer/releases/download/v0.7.0/infer-linux64-v0.7.0.tar.xz
tar xf ~/infer.tar.xz -C ~/
cd ~/infer-linux64-v0.7.0
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ site
node_modules
*.log
*.jar
.bundle
.vendor
vendor
Goopfile.lock
Gemfile.lock
.Rhistory
Expand Down
4 changes: 3 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ dependencies:
- ~/.pyenv/versions/3.4.3
- ~/.pyenv/versions/3.5.1
- ~/coala-bears/node_modules
- ~/.rvm/gems/ruby-2.1.5/gems/
- ~/coala-bears/.bundle
- ~/coala-bears/vendor
- ~/.RLibrary
- ~/dart-sdk/bin
- ~/.cabal
Expand All @@ -16,6 +17,7 @@ dependencies:
- ~/hlint_1.9.26-1_amd64.deb
pre:
- echo 'export PATH=$PATH:~/coala-bears/node_modules/.bin' >> ~/.circlerc
- echo 'export PATH=$PATH:~/coala-bears/vendor/bin' >> ~/.circlerc
- echo 'export LINTR_COMMENT_BOT=false' >> ~/.circlerc
- echo 'export PATH=$PATH:~/dart-sdk/bin' >> ~/.circlerc
- echo 'export PATH=$PATH:~/.cabal/bin' >> ~/.circlerc
Expand Down

0 comments on commit 14ba864

Please sign in to comment.