Sha256: a697e3d1a61fa6fd50bf8f19027684389f7aa8a8136dc2b1e13d2c04eb295c04

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 KB

Contents

# This file is a template, and might need editing before it works on your project.
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/ruby/tags/
image: "ruby:2.5.1"

# Cache gems in between builds
cache:
  paths:
    - vendor/bundle
    - pkg

stages:
  - test
  - deploy
# This is a basic example for a gem or script which doesn't use
# services such as redis or postgres
before_script:
  - "git config --global user.name 'petrosp'"
  - "git config --global user.email 'petros@rolling.space'"
  - ruby -v                                   # Print out ruby version for debugging
  - gem install bundler  --no-ri --no-rdoc    # Bundler is not installed with the image
  - bundle install -j $(nproc) --path vendor/bundle  # Install dependencies into ./vendor/ruby

# Optional - Delete if not using `rubocop`
#rubocop:
#  script:
#    - rubocop

rspec:
  stage: test
  tags:
    - rubygems
  script:
    - bundle exec rspec

# This deploy job uses a simple deploy flow to Heroku, other providers, e.g. AWS Elastic Beanstalk
# are supported too: https://github.com/travis-ci/dpl
deploy:
  stage: deploy
  tags:
    - rubygems
  only:
    - develop
  script:
    - mkdir -p ~/.gem
    - 'echo "---" > ~/.gem/credentials'
    - 'echo ":rubygems_api_key: $RUBYGEMS_KEY" >> ~/.gem/credentials'
    - chmod 0600 ~/.gem/credentials
    - gem signin
    - bundle exec rake dockman:build_push

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dockman-0.1.9 .gitlab-ci.yml