Sha256: 5a7686ba51b343dd03809b3fbdb866f8e3a4d664b844416bc69677c6c759b84b

Contents?: true

Size: 959 Bytes

Versions: 1

Compression:

Stored size: 959 Bytes

Contents

stages:
  - static_analysis
  - security_test
#  - behavior_test
  - release

image: ruby:2.3.3

cache:
  key: "$CI_BUILD_NAME"
  paths:
    - vendor/bundle

before_script:
  - bundle install --jobs=4 --with development

rubocop:
  stage: static_analysis
  script: bundle exec rubocop

bundle_audit:
  stage: security_test
  script: bundle exec bundle-audit check --update

#rspec:
#  stage: behavior_test
#  script: bundle exec rspec

publish:
  stage: release
  script:
    - echo "---" > ~/.gem/credentials
    - COLON=':' && echo "${COLON}rubygems_api_key${COLON} ${RUBYGEMS_API_KEY}" >> ~/.gem/credentials
    - git config --global user.email "norad.dev@gmail.com"
    - git config --global user.name "Norad Release"
    - git config --global push.default simple
    - chmod 0600 ~/.gem/credentials
    - bundle exec rake build
    - bundle exec rake release:guard_clean
    - gem push `ls ./pkg/norad_cli-*.gem`
    - rm -fr ~/.gem
  only:
    - master

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
norad_cli-0.1.0 .gitlab-ci.yml