image: "registry.roqua.nl/roqua/roqua-build-images:ruby-2.3-rails-base-test" variables: RAILS_ENV: "test" stages: - test - publish cache: paths: - .gems before_script: - export BUNDLE_PATH=$CI_PROJECT_DIR/.gems - bundle --jobs 2 --retry 3 - bundle exec appraisal - bundle --jobs 2 --retry 3 rails_41: stage: test script: - bundle exec appraisal rails41 bundle exec rspec rails_42: stage: test script: - bundle exec appraisal rails42 bundle exec rspec rails_50: stage: test script: - bundle exec appraisal rails50 bundle exec rspec build_and_publish_gem: stage: publish dependencies: - rails_41 - rails_42 - rails_50 script: - gem build roqua-support.gemspec - gem push roqua-support-0.1.25.gem