Sfoglia il codice sorgente

Merge pull request #668 from yyuu/ruby-build-20160602

ruby-build 20160602
pull/669/head
Yamashita, Yuu 8 anni fa
committed by GitHub
parent
commit
9a10674ab9
6 ha cambiato i file con 19 aggiunte e 9 eliminazioni
  1. +11
    -3
      plugins/python-build/bin/python-build
  2. +4
    -0
      plugins/python-build/test/checksum.bats
  3. +0
    -1
      plugins/python-build/test/hooks.bats
  4. +4
    -0
      plugins/python-build/test/mirror.bats
  5. +0
    -1
      plugins/python-build/test/pyenv.bats
  6. +0
    -4
      plugins/python-build/test/test_helper.bash

+ 11
- 3
plugins/python-build/bin/python-build Vedi File

@ -14,7 +14,7 @@
# -g/--debug Build a debug version
#
PYTHON_BUILD_VERSION="20160130"
PYTHON_BUILD_VERSION="20160602"
OLDIFS="$IFS"
@ -1831,8 +1831,16 @@ fi
#fi
if [ -z "$MAKE" ]; then
if [ "FreeBSD" = "$(uname -s)" ] && [ "$(uname -r | sed 's/[^[:digit:]].*//')" -lt 10 ]; then
export MAKE="gmake"
if [ "FreeBSD" = "$(uname -s)" ]; then
# if [ $(echo $1 | sed 's/-.*$//') = "jruby" ]; then
# export MAKE="gmake"
# else
if [ "$(uname -r | sed 's/[^[:digit:]].*//')" -lt 10 ]; then
export MAKE="gmake"
else
export MAKE="make"
fi
# fi
else
export MAKE="make"
fi

+ 4
- 0
plugins/python-build/test/checksum.bats Vedi File

@ -5,6 +5,10 @@ export PYTHON_BUILD_SKIP_MIRROR=1
export PYTHON_BUILD_CACHE_PATH=
export PYTHON_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"

+ 0
- 1
plugins/python-build/test/hooks.bats Vedi File

@ -3,7 +3,6 @@
load test_helper
setup() {
ensure_not_found_in_path aria2c
export PYENV_ROOT="${TMP}/pyenv"
export HOOK_PATH="${TMP}/i has hooks"
mkdir -p "$HOOK_PATH"

+ 4
- 0
plugins/python-build/test/mirror.bats Vedi File

@ -6,6 +6,10 @@ export PYTHON_BUILD_CACHE_PATH=
export PYTHON_BUILD_MIRROR_URL=http://mirror.example.com
export PYTHON_BUILD_CURL_OPTS=
setup() {
ensure_not_found_in_path aria2c
}
@test "package URL without checksum bypasses mirror" {
stub shasum true

+ 0
- 1
plugins/python-build/test/pyenv.bats Vedi File

@ -4,7 +4,6 @@ load test_helper
export PYENV_ROOT="${TMP}/pyenv"
setup() {
ensure_not_found_in_path aria2c
stub pyenv-hooks 'install : true'
stub pyenv-rehash 'true'
}

+ 0
- 4
plugins/python-build/test/test_helper.bash Vedi File

@ -38,10 +38,6 @@ ensure_not_found_in_path() {
done
}
setup() {
ensure_not_found_in_path aria2c
}
teardown() {
rm -fr "${TMP:?}"/*
}

Caricamento…
Annulla
Salva