Sha256: 040bc158f54325ffc8ee0aa8688691d7501cdf5a066f6d512c493f2ecadfeda8

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 KB

Contents

name: build

kind: pipeline
type: docker

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

spec_step_common: &spec_step_common
  image: abakpress/dind-testing:1.0.3
  pull: if-not-exists
  privileged: true
  volumes:
    - name: images
      path: /images
    - name: bundle
      path: /bundle
  commands:
    - prepare-build

    - fetch-images
      --image abakpress/ruby-app:$RUBY_IMAGE_TAG
    - dip provision
    - dip rspec

steps:
  - name: Tests Ruby 2.2
    environment:
      COMPOSE_FILE_EXT: drone
      DOCKER_RUBY_VERSION: 2.2
      RUBY_IMAGE_TAG: 2.2-latest
      RAILS_ENV: test
    <<: *spec_step_common

  - name: Tests Ruby 2.3
    environment:
      COMPOSE_FILE_EXT: drone
      DOCKER_RUBY_VERSION: 2.3
      RUBY_IMAGE_TAG: 2.3-latest
      RAILS_ENV: test
    <<: *spec_step_common

  - name: Tests Ruby 2.4
    environment:
      COMPOSE_FILE_EXT: drone
      DOCKER_RUBY_VERSION: 2.4
      RUBY_IMAGE_TAG: 2.4-latest
      RAILS_ENV: test
    <<: *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
slaver-0.2.3 .drone.yml