Fix rails and systemtap tests
- dependencies - kernel install for systemtap test
This commit is contained in:
parent
0e9277b6ce
commit
3af87f3776
4 changed files with 68 additions and 40 deletions
|
|
@ -7,6 +7,13 @@ component:
|
|||
recommend:
|
||||
- rubygems
|
||||
- rubygem-rails
|
||||
- rubygem-nokogiri
|
||||
- rubygem-sqlite3
|
||||
- rubygem-sass-rails
|
||||
- rubygem-puma
|
||||
- rubygem-jbuilder
|
||||
- rubygem-byebug
|
||||
- rubygem-web-console
|
||||
- ruby-devel
|
||||
- sqlite-devel
|
||||
- libxml2-devel
|
||||
|
|
@ -15,5 +22,6 @@ recommend:
|
|||
- net-tools
|
||||
- procps-ng
|
||||
- psmisc
|
||||
- wget
|
||||
duration: 60m
|
||||
extra-task: /CoreOS/rubygem-rails/run-basic-rails-application
|
||||
|
|
|
|||
|
|
@ -65,24 +65,21 @@ rlJournalStart
|
|||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "rails new app | tee bundle.log" 0 "Creating new rails application"
|
||||
rlRun "rails new app --skip-bundle --skip-spring --skip-test --skip-bootsnap --skip-webpacker --skip-javascript -f | tee bundle.log" 0 "Creating new rails application"
|
||||
[ ! -z "$COLLECTIONS" ] && rlAssertGrep "bundle install --local" bundle.log || rlAssertNotGrep "bundle install --local" bundle.log
|
||||
rlRun "pushd app/"
|
||||
rlAssertExists "app"
|
||||
|
||||
if [[ ! "$COLLECTIONS" =~ "rh-ror50" ]]
|
||||
then
|
||||
rlRun "echo \"gem 'therubyracer'\" >> Gemfile" 0 "Adding therubyracer gem into Gemfile"
|
||||
rlRun "bundle install"
|
||||
fi
|
||||
|
||||
if [ -z "$COLLECTIONS" ] && rlIsRHEL '<=7'
|
||||
then
|
||||
rlRun "echo \"gem 'nokogiri', '1.6.8'\" >> Gemfile" 0 "Adding nokogiri gem into Gemfile"
|
||||
sed -i "s/gem 'spring'/#gem 'spring'/" Gemfile
|
||||
rlRun "gem pristine nokogiri" 0 "Restore installed nokogiri to pristine condition"
|
||||
rlRun "bundle config build.nokogiri --use-system-libraries" 0 "Build nokogiri with system libraries"
|
||||
rlRun "bundle install"
|
||||
rlRun "bundle install --local"
|
||||
fi
|
||||
|
||||
if rlIsFedora
|
||||
then
|
||||
rlRun "sed -i \"s/\(gem..puma.\).*/\1/\" Gemfile" 0 'Relaxing puma dependency'
|
||||
rlRun "sed -i \"s/\(gem..listen.\).*/\1/\" Gemfile" 0 'Relaxing listen dependency'
|
||||
rlRun "bundle install --local --without development test"
|
||||
fi
|
||||
rlRun "netstat -tulpn | grep 3000" 1 "Check if port 3000 isn't engaged"
|
||||
rlRun "rails server &" 0 "Running rails server"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue