Skip to content

Commit a113e94

Browse files
committed
Test CI.
1 parent 8fa978f commit a113e94

File tree

5 files changed

+34
-2
lines changed

5 files changed

+34
-2
lines changed

.drone.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pipeline:
2+
build:
3+
image: topcbl/test-drone-ci
4+
commands:
5+
- bundle install
6+
- framgia-ci run
7+
8+
docker:
9+
image: plugins/docker
10+
username: ${REGISTRY_USER}
11+
password: ${REGISTRY_PWD}
12+
repo: chau-bao-long/annyeongsv
13+
tags: latest
14+

.framgia-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
project_type: ruby
2+
test:
3+
rubocop:
4+
command: bundle exec rubocop
5+
6+

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ruby:2.4.1
2+
3+
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
4+
RUN apt-get -y update
5+
RUN apt-get -y install qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x xvfb
6+
7+
COPY Gemfile /cache/Gemfile
8+
COPY Gemfile.lock /cache/Gemfile.lock
9+
10+
RUN cd /cache && bundle install
11+
12+
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

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source "https://rubygems.org"
33
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
44

55
# Specify your gem's dependencies in grape_on_rails.gemspec
6-
gemspec
6+
#gemspec
77

88
gem 'rack', github: 'rack/rack'
99
gem 'arel', github: 'rails/arel'

lib/grape_on_rails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require "grape_on_rails/version"
22
require "active_support/dependencies/autoload"
33
require "active_support/core_ext/array/extract_options"
4-
require 'active_support/core_ext/module/attribute_accessors'
4+
require "active_support/core_ext/module/attribute_accessors"
55
require "active_support/concern"
66
require "grape_on_rails/sources/yaml_source"
77
require "grape_on_rails/structural_hash"

0 commit comments

Comments
 (0)