[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix travis testing
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Mar 26, 2020
1 parent efe2d69 commit 6e62cc2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,15 @@ before_install:
$SCRIPT_RUN_PREFIX sh -c 'for s in 0 15; do sleep $s; apt-get update && apt-get -qy dist-upgrade && break; done'
else
if [ "$PYPY" = "5.8.0" ]; then
curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy{PYTHON:0:1}-v{PYPY}-linux64.tar.bz2 | tar xj
curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy${PYTHON:0:1}-v${PYPY}-linux64.tar.bz2 | tar xj
PY_CMD=$(echo `pwd`/pypy${PYTHON:0:1}-v${PYPY}-linux64/bin/pypy)
CMAKE_EXTRA_ARGS+=" -DPYTHON_EXECUTABLE:FILEPATH=$PY_CMD"
elif [ -n "$PYPY" ]; then
curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy${PYTHON:0:2}-v${PYPY}-linux64.tar.bz2 | tar xj
PY_CMD=$(echo `pwd`/pypy${PYTHON:0:2}-v${PYPY}-linux64/bin/pypy)
curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy${PYTHON:0:3}-v${PYPY}-linux64.tar.bz2 | tar xj
PY_CMD=$(echo `pwd`/pypy${PYTHON:0:3}-v${PYPY}-linux64/bin/pypy)
if [ "${PYTHON:0:1}" = "3" ]; then
PY_CMD="${PY_CMD}3"
fi
CMAKE_EXTRA_ARGS+=" -DPYTHON_EXECUTABLE:FILEPATH=$PY_CMD"
else
PY_CMD=python$PYTHON
Expand Down

0 comments on commit 6e62cc2

Please sign in to comment.