Skip to content

Commit e43b30c

Browse files
committed
initial Travis: only docs
can't test without an actual GPIO
1 parent cad604b commit e43b30c

File tree

2 files changed

+3
-75
lines changed

2 files changed

+3
-75
lines changed

.travis.yml

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,12 @@
11
language: python
22
python:
3-
- 3.5.0
4-
- 3.5.2
5-
- 3.5-dev
63
- 3.6
7-
- 3.6-dev
8-
- 3.7-dev
94
sudo: false
105
dist: trusty
116

12-
matrix:
13-
include:
14-
- os: linux
15-
language: generic
16-
env: USE_PYPY_RELEASE_VERSION=5.9-beta
17-
# Uncomment if you want to test on pypy nightly
18-
# - os: linux
19-
# language: generic
20-
# env: USE_PYPY_NIGHTLY=1
21-
- os: osx
22-
language: generic
23-
env: MACPYTHON=3.5.4
24-
- os: osx
25-
language: generic
26-
env: MACPYTHON=3.6.3
27-
- os: linux
28-
language: python
29-
python: 3.6
30-
env: CHECK_DOCS=1
31-
- os: linux
32-
language: python
33-
python: 3.6
34-
env: CHECK_FORMATTING=1
7+
env:
8+
- CHECK_DOCS=1
9+
- CHECK_FORMATTING=1
3510

3611
script:
3712
- ci/travis.sh

ci/travis.sh

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,6 @@ set -ex
55
# See https://github.com/python-trio/trio/issues/334
66
YAPF_VERSION=0.17.0
77

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-
558
pip install -U pip setuptools wheel
569

5710
if [ "$CHECK_FORMATTING" = "1" ]; then

0 commit comments

Comments
 (0)