Skip to content

Commit

Permalink
Test CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
chau-bao-long committed Apr 17, 2018
1 parent 8fa978f commit e100020
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pipeline:
build:
image: topcbl/framgia_glpa
commands:
- bundle install
- framgia-ci run

docker:
image: plugins/docker
username: ${REGISTRY_USER}
password: ${REGISTRY_PWD}
repo: chau-bao-long/annyeongsv
tags: latest

6 changes: 6 additions & 0 deletions .framgia-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project_type: ruby
test:
rubocop:
command: bundle exec rubocop


12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ruby:2.4.1

RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - && apt-get install -y nodejs && npm install -g gulp-cli bower eslint babel-eslint eslint-plugin-angular
RUN apt-get -y update
RUN apt-get -y install qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x xvfb

COPY Gemfile /cache/Gemfile
COPY Gemfile.lock /cache/Gemfile.lock

RUN cd /cache && bundle install

RUN curl -o /usr/bin/framgia-ci https://raw.githubusercontent.com/framgia/ci-report-tool/master/dist/framgia-ci && chmod +x /usr/bin/framgia-ci
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

# Specify your gem's dependencies in grape_on_rails.gemspec
gemspec
#gemspec

gem 'rack', github: 'rack/rack'
gem 'arel', github: 'rails/arel'
Expand Down
2 changes: 1 addition & 1 deletion lib/grape_on_rails.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "grape_on_rails/version"
require "active_support/dependencies/autoload"
require "active_support/core_ext/array/extract_options"
require 'active_support/core_ext/module/attribute_accessors'
require "active_support/core_ext/module/attribute_accessors"
require "active_support/concern"
require "grape_on_rails/sources/yaml_source"
require "grape_on_rails/structural_hash"
Expand Down

0 comments on commit e100020

Please sign in to comment.