|
5 | 5 | # See https://github.com/python-trio/trio/issues/334
|
6 | 6 | YAPF_VERSION=0.17.0
|
7 | 7 |
|
8 |
| -if [ "$TRAVIS_OS_NAME" = "osx" ]; then |
9 |
| - curl -Lo macpython.pkg https://www.python.org/ftp/python/${MACPYTHON}/python-${MACPYTHON}-macosx10.6.pkg |
10 |
| - sudo installer -pkg macpython.pkg -target / |
11 |
| - ls /Library/Frameworks/Python.framework/Versions/*/bin/ |
12 |
| - PYTHON_EXE=/Library/Frameworks/Python.framework/Versions/*/bin/python3 |
13 |
| - sudo $PYTHON_EXE -m pip install virtualenv |
14 |
| - $PYTHON_EXE -m virtualenv testenv |
15 |
| - source testenv/bin/activate |
16 |
| -fi |
17 |
| - |
18 |
| -if [ "$USE_PYPY_NIGHTLY" = "1" ]; then |
19 |
| - curl -fLo pypy.tar.bz2 http://buildbot.pypy.org/nightly/py3.5/pypy-c-jit-latest-linux64.tar.bz2 |
20 |
| - if [ ! -s pypy.tar.bz2 ]; then |
21 |
| - # We know: |
22 |
| - # - curl succeeded (200 response code; -f means "exit with error if |
23 |
| - # server returns 4xx or 5xx") |
24 |
| - # - nonetheless, pypy.tar.bz2 does not exist, or contains no data |
25 |
| - # This isn't going to work, and the failure is not informative of |
26 |
| - # anything involving this package. |
27 |
| - ls -l |
28 |
| - echo "PyPy3 nightly build failed to download – something is wrong on their end." |
29 |
| - echo "Skipping testing against the nightly build for right now." |
30 |
| - exit 0 |
31 |
| - fi |
32 |
| - tar xaf pypy.tar.bz2 |
33 |
| - # something like "pypy-c-jit-89963-748aa3022295-linux64" |
34 |
| - PYPY_DIR=$(echo pypy-c-jit-*) |
35 |
| - PYTHON_EXE=$PYPY_DIR/bin/pypy3 |
36 |
| - ($PYTHON_EXE -m ensurepip \ |
37 |
| - && $PYTHON_EXE -m pip install virtualenv \ |
38 |
| - && $PYTHON_EXE -m virtualenv testenv) \ |
39 |
| - || (echo "pypy nightly is broken; skipping tests"; exit 0) |
40 |
| - source testenv/bin/activate |
41 |
| -fi |
42 |
| - |
43 |
| -if [ "$USE_PYPY_RELEASE_VERSION" != "" ]; then |
44 |
| - curl -fLo pypy.tar.bz2 https://bitbucket.org/squeaky/portable-pypy/downloads/pypy3.5-${USE_PYPY_RELEASE_VERSION}-linux_x86_64-portable.tar.bz2 |
45 |
| - tar xaf pypy.tar.bz2 |
46 |
| - # something like "pypy3.5-5.7.1-beta-linux_x86_64-portable" |
47 |
| - PYPY_DIR=$(echo pypy3.5-*) |
48 |
| - PYTHON_EXE=$PYPY_DIR/bin/pypy3 |
49 |
| - $PYTHON_EXE -m ensurepip |
50 |
| - $PYTHON_EXE -m pip install virtualenv |
51 |
| - $PYTHON_EXE -m virtualenv testenv |
52 |
| - source testenv/bin/activate |
53 |
| -fi |
54 |
| - |
55 | 8 | pip install -U pip setuptools wheel
|
56 | 9 |
|
57 | 10 | if [ "$CHECK_FORMATTING" = "1" ]; then
|
|
0 commit comments