1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-09 20:13:47 -05:00

Run python-build directly from make to avoid job cancellation after 10 min no output on travis-ci.org

This commit is contained in:
Yamashita, Yuu
2019-04-08 23:54:12 +09:00
parent e7ed7fa27e
commit 02a4b33b62
3 changed files with 11 additions and 26 deletions

View File

@@ -1,21 +0,0 @@
#!/usr/bin/env bats
load ../test_helper
export PATH="$BATS_TEST_DIRNAME/../../bin:$PATH"
export PYTHON_BUILD_VERSION="${PYTHON_BUILD_VERSION:-3.8-dev}"
@test "Python build works" {
run python-build "$PYTHON_BUILD_VERSION" "$BATS_TMPDIR/dist"
assert_success
[ -e "$BATS_TMPDIR/dist/bin/python" ]
run "$BATS_TMPDIR/dist/bin/python" -V
assert_success
"$BATS_TMPDIR/dist/bin/python" -V >&3 2>&3
[ -e "$BATS_TMPDIR/dist/bin/pip" ]
run "$BATS_TMPDIR/dist/bin/pip" -V
assert_success
"$BATS_TMPDIR/dist/bin/pip" -V >&3 2>&3
}