Unverified Commit 2522429c authored by Peter Stanko's avatar Peter Stanko
Browse files

Ruby Gitlab-CI example

parent 0795dcba
Loading
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+11 −0
Original line number Diff line number Diff line
/.bundle/
/.yardoc
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

# rspec failure tracking
.rspec_status

.gitlab-ci.yml

0 → 100644
+25 −0
Original line number Diff line number Diff line
#
# https://gitlab.com/gitlab-org/gitlab-ci-yml/blob/master/Ruby.gitlab-ci.yml
#
image: ruby:latest

stages:
  - test

# Cache gems in between builds
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - vendor/ruby

before_script:
  - 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  # Install dependencies into ./vendor/ruby

test:
  stage: test
  tags:
    - shared-fi
  script:
  - bundle exec rake spec

.rspec

0 → 100644
+3 −0
Original line number Diff line number Diff line
--format documentation
--color
--require spec_helper

.ruby-version

0 → 100644
+1 −0
Original line number Diff line number Diff line
2.4.3

Gemfile

0 → 100644
+6 −0
Original line number Diff line number Diff line
source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

# Specify your gem's dependencies in ci_examples.gemspec
gemspec
Loading