Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
ruby-markdown-it-html5-embed
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Ruby Team
ruby-markdown-it-html5-embed
Commits
e4a3bd6b
Verified
Commit
e4a3bd6b
authored
4 years ago
by
Abraham Raji
Browse files
Options
Downloads
Patches
Plain Diff
Reduce autopkgtest dependencies
- embedded a dummy rails app
parent
db782260
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/tests/control
+2
-1
2 additions, 1 deletion
debian/tests/control
debian/tests/smoke-test
+60
-4
60 additions, 4 deletions
debian/tests/smoke-test
with
62 additions
and
5 deletions
debian/tests/control
+
2
−
1
View file @
e4a3bd6b
Tests: smoke-test
Tests: smoke-test
Depends: @, rails
Depends: @, ruby-railties (>= 2:6.0~), ruby-bundler, ruby-sass-rails
This diff is collapsed.
Click to expand it.
debian/tests/smoke-test
+
60
−
4
View file @
e4a3bd6b
...
@@ -3,18 +3,74 @@
...
@@ -3,18 +3,74 @@
exec
2>&1
exec
2>&1
set
-ex
set
-ex
cd
$ADTTMP
smoke
()
{
# Create a dummy rails app skeleton
rails new foo
cd
$AUTOPKGTEST_TMP
mkdir
foo
cd
foo
cd
foo
mkdir
-p
config
mkdir
-p
app/assets/javascripts
# Include the rails asset we want to test
cat
>>
app/assets/javascripts/application.js
<<
EOF
cat
>>
app/assets/javascripts/application.js
<<
EOF
# =require markdown-it-html5-embed
# =require markdown-it-html5-embed
EOF
EOF
cat
>>
Gemfile
<<
EOF
cat
>>
Gemfile
<<
EOF
gem 'markdown-it-html5-embed'
gem "rake"
gem "railties"
gem "markdown-it-html5-embed", "~> 1.0"
EOF
EOF
bundle
install
--local
bundle
install
--local
# Copied from rails new foo
cat
>>
Rakefile
<<
EOF
require_relative 'config/application'
Rails.logger = Logger.new(STDOUT)
Rails.application.load_tasks
EOF
# Copied from rails new foo
cat
>>
config/application.rb
<<
EOF
require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Foo
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.0
# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.
end
end
EOF
# Copied from rails new foo
cat
>>
config/boot.rb
<<
EOF
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
EOF
# Copied from rails new foo
cat
>>
config/environment.rb
<<
EOF
# Load the Rails application.
require_relative 'application'
# Initialize the Rails application.
Rails.application.initialize!
EOF
# Confirm sprockets can find the asset
bundle
exec
rake assets:precompile
bundle
exec
rake assets:precompile
}
smoke markdown-it-html5-embed
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment