.gitlab-ci.yml in roqua-support-0.1.24 vs .gitlab-ci.yml in roqua-support-0.1.25

- old
+ new

@@ -1,21 +1,43 @@ -image: "roqua/roqua-build-images:ruby-2.3.3-phantomjs-2.1.1-bundler-gemnasium" +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: - - bundle install - - gem install appraisal + - 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 \ No newline at end of file + - 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