Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
1dbabb2c
Commit
1dbabb2c
authored
Sep 03, 2012
by
Alex Chaffee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
really fix sh CI issue
parent
a38e60dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
integration_spec.rb
spec/integration/integration_spec.rb
+10
-11
No files found.
spec/integration/integration_spec.rb
View file @
1dbabb2c
...
...
@@ -56,17 +56,16 @@ describe "annotate inside Rails, using #{CURRENT_RUBY}" do
klass
=
"Annotate::Validations::
#{
base_dir
.
gsub
(
'.'
,
'_'
).
classify
}
"
.
constantize
Dir
.
chdir
(
temp_dir
)
do
output
=
`
(
export AUTOMATED_TEST="
#{
BASEDIR
}
"
# First, make sure we're not in 'sh' mode (I.E. strict-superset-of-Bourne
# mode), as RVM doesn't like this...
shopt -u -o posix
source .rvmrc &&
#{
klass
.
test_commands
}
) 2>&1`
.
chomp
# bash is required by rvm
# the shopt command forces us out of "strict sh" mode
commands
=
<<-
BASH
export AUTOMATED_TEST="
#{
BASEDIR
}
";
shopt -u -o posix;
source .rvmrc &&
(bundle check || bundle install) &&
#{
klass
.
test_commands
}
BASH
output
=
`/usr/bin/env bash -c '
#{
commands
}
' 2>&1`
.
chomp
klass
.
verify_output
(
output
)
klass
.
verify_files
(
test_rig
)
end
...
...
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