Sha256: d778c84cd10da178aad0ced460bef86f1ba9bc1819da76a54f017981e0ebb834

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

---
kind: pipeline
type: docker
name: build

volumes:
  - name: bundle
    host:
      path: /home/data/drone/gems
  - name: rubygems
    host:
      path: /home/data/drone/rubygems

spec_step_common: &spec_step_common
  pull: if-not-exists
  volumes:
  - name: bundle
    path: /bundle
  commands:
  - rm -fr Gemfile.lock gemfiles/
  - bundle install -j 5
  - bundle exec appraisal install
  - bundle exec appraisal bundle exec rspec

steps:
- name: build on ruby2.2
  image: abakpress/ruby-app:2.2-latest
  environment:
    TEST_DB_HOST: postgres
    TEST_DB_NAME: docker
    TEST_DB_USERNAME: postgres
    BUNDLE_PATH: /bundle/2.2
  <<: *spec_step_common

- name: build on ruby2.3
  image: abakpress/ruby-app:2.3-latest
  environment:
    TEST_DB_HOST: postgres
    TEST_DB_NAME: docker
    TEST_DB_USERNAME: postgres
    BUNDLE_PATH: /bundle/2.3
  <<: *spec_step_common

- name: build on ruby2.4
  image: abakpress/ruby-app:2.4-latest
  environment:
    TEST_DB_HOST: postgres
    TEST_DB_NAME: docker
    TEST_DB_USERNAME: postgres
    BUNDLE_PATH: /bundle/2.4
  <<: *spec_step_common

- name: release
  image: abakpress/gem-publication:latest
  pull: if-not-exists
  when:
    event: push
    branch: master
    status: success
  volumes:
  - name: rubygems
    path: /root/.gem
  commands:
    - release-gem --public

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
string_tools-0.16.0 .drone.yml