Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
f085feb8
Commit
f085feb8
authored
Aug 15, 2016
by
Mislav Marohnić
Committed by
GitHub
Aug 15, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #979 from jasonkarns/test-setup-cleanup
Remove suite-wide setup
parents
f666e716
21494ba3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
8 deletions
+10
-8
bin/ruby-build
+2
-2
test/checksum.bats
+4
-0
test/hooks.bats
+0
-1
test/mirror.bats
+4
-0
test/rbenv.bats
+0
-1
test/test_helper.bash
+0
-4
No files found.
bin/ruby-build
View file @
f085feb8
...
...
@@ -1222,9 +1222,9 @@ if [ -z "$MAKE" ]; then
export
MAKE
=
"gmake"
else
if
[
"
$(
uname
-r
| sed
's/[^[:digit:]].*//'
)
"
-lt
10
]
;
then
export
MAKE
=
"gmake"
export
MAKE
=
"gmake"
else
export
MAKE
=
"make"
export
MAKE
=
"make"
fi
fi
else
...
...
test/checksum.bats
View file @
f085feb8
...
...
@@ -5,6 +5,10 @@ export RUBY_BUILD_SKIP_MIRROR=1
export RUBY_BUILD_CACHE_PATH=
export RUBY_BUILD_CURL_OPTS=
setup() {
ensure_not_found_in_path aria2c
}
@test "package URL without checksum" {
stub curl "-q -o * -*S* http://example.com/* : cp $FIXTURE_ROOT/\${5##*/} \$3"
...
...
test/hooks.bats
View file @
f085feb8
...
...
@@ -3,7 +3,6 @@
load test_helper
setup() {
ensure_not_found_in_path aria2c
export RBENV_ROOT="${TMP}/rbenv"
export HOOK_PATH="${TMP}/i has hooks"
mkdir -p "$HOOK_PATH"
...
...
test/mirror.bats
View file @
f085feb8
...
...
@@ -6,6 +6,10 @@ export RUBY_BUILD_CACHE_PATH=
export RUBY_BUILD_MIRROR_URL=http://mirror.example.com
export RUBY_BUILD_CURL_OPTS=
setup() {
ensure_not_found_in_path aria2c
}
@test "package URL without checksum bypasses mirror" {
stub shasum true
...
...
test/rbenv.bats
View file @
f085feb8
...
...
@@ -4,7 +4,6 @@ load test_helper
export RBENV_ROOT="${TMP}/rbenv"
setup() {
ensure_not_found_in_path aria2c
stub rbenv-hooks 'install : true'
stub rbenv-rehash 'true'
}
...
...
test/test_helper.bash
View file @
f085feb8
...
...
@@ -38,10 +38,6 @@ ensure_not_found_in_path() {
done
}
setup
()
{
ensure_not_found_in_path aria2c
}
teardown
()
{
rm
-fr
"
${
TMP
:?
}
"
/
*
}
...
...
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