Files
mac_os/circle.yml
Brooke Kuhlmann 2d58c953e1 Updated to Ruby 2.6.0.
[Changes](https://is.gd/MuTHWG).
2018-12-25 11:29:03 -07:00

57 lines
1.3 KiB
YAML

version: 2
jobs:
build:
working_directory: ~/project
docker:
- image: circleci/ruby:2.5
environment:
BUNDLE_JOBS: 3
BUNDLE_RETRY: 3
BUNDLE_PATH: vendor/bundle
EDITOR: vim
steps:
- checkout
- type: cache-restore
name: Ruby Restore
key: ruby
- run:
name: Ruby Install
command: |
curl https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.0.tar.bz2 -o ../ruby-2.6.0.tar.gz
cd ..
tar --extract --bzip2 --verbose --file ruby-2.6.0.tar.gz
cd ruby-2.6.0
./configure
make
make update-gems
make extract-gems
sudo make install
- type: cache-save
name: Ruby Store
key: ruby
paths:
- ../ruby-2.6.0
- type: cache-restore
name: Bundler Cache Restore
key: bundle-{{ checksum "Gemfile" }}
- run:
name: Bundler Install
command: |
gem update --system
bundle check || bundle install
- type: cache-save
name: Bundler Cache Store
key: bundle-{{ checksum "Gemfile" }}
paths:
- vendor/bundle
- run:
name: Rake Run
command: bundle exec rake