clone:
  git:
    image: plugins/git
    branch: master
    depth: 32767

workspace:
  base: /build
  path: src/github.com/mephux/ruby-nessus

pipeline:
  normal:
    image: mephux/docker-golang
    environment:
      - GO15VENDOREXPERIMENT=1
    commands:
      - export GEM_HOME=$HOME/.gem
      - export GEM_PATH=$HOME/.gem
      - apk add --update rpm ruby-dev gcc make > /dev/null 2>&1
      - gem install yard bundler rdoc rubygems-tasks rake rspec coveralls --no-rdoc --no-ri
      - rake yard
      - rubocop -F --fail-level C -f s
      - rspec spec/
    when:
      event: [push]
  dist:
    image: mephux/docker-golang
    environment:
      - GO15VENDOREXPERIMENT=1
    commands:
      - apk add --update rpm ruby-dev gcc make > /dev/null 2>&1
      - gem install yard bundler rdoc rubygems-tasks fpm rake rspec --no-rdoc --no-ri
      - rake dist
    when:
      event: [tag]
publish:
  github_release:
    api_key: $$GITHUB
    files: dist/*xz
    file_exists: fail
    # draft: true
    when:
      event: tag

clone:
  git:
    image: plugins/git
    branch: master
    depth: 32767

workspace:
  base: /build
  path: src/github.com/mephux/ruby-nessus

pipeline:
  normal:
    image: mephux/docker-golang
    environment:
      - GO15VENDOREXPERIMENT=1
    commands:
      - export GEM_HOME=$HOME/.gem
      - export GEM_PATH=$HOME/.gem
      - apk add --update rpm ruby-dev gcc make > /dev/null 2>&1
      - gem install yard bundler rdoc rubygems-tasks rake rspec coveralls rainbow rubocop nokogiri --no-rdoc --no-ri
      - rake yard
      - rake spec
    when:
      event: [push]
  dist:
    image: mephux/docker-golang
    environment:
      - GO15VENDOREXPERIMENT=1
    commands:
      - apk add --update rpm ruby-dev gcc make > /dev/null 2>&1
      - gem install yard bundler rdoc rubygems-tasks fpm rake rspec rainbow nokogiri --no-rdoc --no-ri
      - rake dist
    when:
      event: [tag]
publish:
  github_release:
    api_key: $$GITHUB
    files: dist/*xz
    file_exists: fail
    # draft: true
    when:
      event: tag

Fix unit-test configuration to run rspec test
Fix unit-test configuration to run rspec test

Signed-off-by: Florian Wininger <4d1fd30f068684f2b4b4085eae4b76a36636cfc6@gmail.com>
