- run: ruby -e 'puts RUBY_VERSION' | tee /tmp/.ruby-version
- *restore_ruby_dependencies
- - run: bundle install --clean --jobs 16 --path ./vendor/bundle/ --retry 3 --with pam_authentication --without development production
+ - run: bundle install --clean --jobs 16 --path ./vendor/bundle/ --retry 3 --with pam_authentication --without development production && bundle clean
- save_cache:
key: v2-ruby-dependencies-{{ checksum "/tmp/.ruby-version" }}-{{ checksum "Gemfile.lock" }}
paths:
- ./.bundle/
- ./vendor/bundle/
+ - persist_to_workspace:
+ root: ~/projects/
+ paths:
+ - ./mastodon/.bundle/
+ - ./mastodon/vendor/bundle/
- &test_steps
steps:
- *install_system_dependencies
- run: sudo apt-get install -y ffmpeg
- - run: ruby -e 'puts RUBY_VERSION' | tee /tmp/.ruby-version
- - *restore_ruby_dependencies
-
- run:
name: Prepare Tests
command: ./bin/rails parallel:create parallel:load_schema parallel:prepare
steps:
- *attach_workspace
- *install_system_dependencies
- - run: ruby -e 'puts RUBY_VERSION' | tee /tmp/.ruby-version
- - *restore_ruby_dependencies
- run: ./bin/rails assets:precompile
- persist_to_workspace:
root: ~/projects/
<<: *defaults
steps:
- *attach_workspace
- - run: ruby -e 'puts RUBY_VERSION' | tee /tmp/.ruby-version
- - *restore_ruby_dependencies
- run: bundle exec i18n-tasks check-normalized
- run: bundle exec i18n-tasks unused
- install-ruby2.4:
requires:
- install
+ - install-ruby2.5
- install-ruby2.3:
requires:
- install
+ - install-ruby2.5
- build:
requires:
- install-ruby2.5