Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
38166cf0
Unverified
Commit
38166cf0
authored
Sep 28, 2017
by
Wojciech Wnętrzak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring back old bundler version to fix CI
parent
176de35d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
.travis.yml
+6
-1
features/step_definitions/rails_steps.rb
+3
-12
No files found.
.travis.yml
View file @
38166cf0
language
:
ruby
language
:
ruby
cache
:
bundler
sudo
:
false
rvm
:
rvm
:
-
2.1
-
2.1
...
@@ -7,6 +7,11 @@ rvm:
...
@@ -7,6 +7,11 @@ rvm:
-
2.3
-
2.3
-
2.4
-
2.4
# FIXME: fails with modern bundler
before_install
:
-
rvm @global do gem uninstall bundler -a -x
-
rvm @global do gem install bundler -v 1.12.5
script
:
"
bundle
exec
rake
clean
spec
cucumber"
script
:
"
bundle
exec
rake
clean
spec
cucumber"
addons
:
addons
:
...
...
features/step_definitions/rails_steps.rb
View file @
38166cf0
...
@@ -8,17 +8,16 @@ Given /^I generate a new rails application$/ do
...
@@ -8,17 +8,16 @@ Given /^I generate a new rails application$/ do
steps
%{
steps
%{
And I turn off class caching
And I turn off class caching
And I fix the application.rb for 3.0.12
And I write to "Gemfile" with:
And I write to "Gemfile" with:
"""
"""
source "http://rubygems.org"
source "http://rubygems.org"
gem "rails", "#{framework_version}"
gem "rails", "#{framework_version}"
gem "sqlite3",
"1.3.8",
:platform => [:ruby, :rbx]
gem "sqlite3", :platform => [:ruby, :rbx]
gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
gem "jruby-openssl", :platform => :jruby
gem "jruby-openssl", :platform => :jruby
gem "capybara"
gem "capybara"
gem "gherkin"
gem "gherkin"
gem "aws-sdk"
gem "aws-sdk"
, "~> 2.0.0"
gem "racc", :platform => :rbx
gem "racc", :platform => :rbx
gem "rubysl", :platform => :rbx
gem "rubysl", :platform => :rbx
"""
"""
...
@@ -30,14 +29,6 @@ Given /^I generate a new rails application$/ do
...
@@ -30,14 +29,6 @@ Given /^I generate a new rails application$/ do
FileUtils
.
chdir
(
"../../.."
)
FileUtils
.
chdir
(
"../../.."
)
end
end
Given
"I fix the application.rb for 3.0.12"
do
cd
(
"."
)
do
File
.
open
(
"config/application.rb"
,
"a"
)
do
|
f
|
f
<<
"ActionController::Base.config.relative_url_root = ''"
end
end
end
Given
"I allow the attachment to be submitted"
do
Given
"I allow the attachment to be submitted"
do
cd
(
"."
)
do
cd
(
"."
)
do
transform_file
(
"app/controllers/users_controller.rb"
)
do
|
content
|
transform_file
(
"app/controllers/users_controller.rb"
)
do
|
content
|
...
@@ -174,7 +165,7 @@ end
...
@@ -174,7 +165,7 @@ end
When
/^I configure the application to use "([^\"]+)" from this project$/
do
|
name
|
When
/^I configure the application to use "([^\"]+)" from this project$/
do
|
name
|
append_to_gemfile
"gem '
#{
name
}
', :path => '
#{
PROJECT_ROOT
}
'"
append_to_gemfile
"gem '
#{
name
}
', :path => '
#{
PROJECT_ROOT
}
'"
steps
%{And I run `bundle install --local`}
steps
%{And I
successfully
run `bundle install --local`}
end
end
When
/^I configure the application to use "([^\"]+)"$/
do
|
gem_name
|
When
/^I configure the application to use "([^\"]+)"$/
do
|
gem_name
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment