Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
test: pypy-5.4.1, try a matrix, tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey committed Jan 26, 2017
1 parent f8c819e commit 0b79097
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 23 deletions.
18 changes: 10 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
language: python
sudo: required
dist: precise
python:
- '2.7'

matrix:
include:
- python: 2.7
env: TOXENV=py27 INCLUDE=ddb
- python: pypy-5.4.1
env: TOXENV=pypy INCLUDE=ddb
- env: TOXENV=flake8 PRE_TARGETS=

install:
- pip install virtualenv
- virtualenv pypy
- cd pypy/bin && ln -s python pypy && cd ../..
- source pypy/bin/activate
- python --version
- make travis
- make $INCLUDE travis
script: tox -- --with-coverage --cover-xml --cover-package=autopush
after_success:
- codecov
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ BUILD_DIRS = bin build deps include lib lib64 lib_pypy lib-python\

all: build

travis: $(HERE)/ddb $(BIN)/tox
travis:
pip install coverage nose mock moto codecov tox

$(HERE)/ddb:
ddb:
mkdir $@
curl -sSL http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz | tar xzvC $@

Expand Down Expand Up @@ -58,7 +58,7 @@ build: $(BIN)/pip
$(INSTALL) -r $(REQS)
$(PYTHON) setup.py develop

test: $(BIN)/tox $(HERE)/ddb
test: $(BIN)/tox ddb
$(BIN)/tox

coverage: $(BIN)/tox
Expand Down
11 changes: 11 additions & 0 deletions base-test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
nose
coverage
mock>=1.0.1
funcsigs==1.0.2
pbr==1.10.0
-e git+https://github.com/habnabit/txstatsd.git@master#egg=txStatsD
-e git+https://github.com/bbangert/moto.git@3bdb75a961148ea5aa526f0e88d9e7835a30df3a#egg=moto
flake8==3.2.0
psutil
websocket-client
Pympler==0.4.3
2 changes: 2 additions & 0 deletions pypy-test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r pypy-requirements.txt
-r base-test-requirements.txt
12 changes: 1 addition & 11 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
-r requirements.txt
nose
coverage
mock>=1.0.1
funcsigs==1.0.2
pbr==1.10.0
-e git+https://github.com/habnabit/txstatsd.git@master#egg=txStatsD
-e git+https://github.com/bbangert/moto.git@3bdb75a961148ea5aa526f0e88d9e7835a30df3a#egg=moto
flake8==3.2.0
psutil
websocket-client
Pympler==0.4.3
-r base-test-requirements.txt
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = python,flake8
envlist = py27,pypy,flake8

[testenv]
deps = -rtest-requirements.txt
Expand All @@ -9,6 +9,9 @@ commands =
nosetests {posargs} --with-object-tracker autopush
install_command = pip install --pre {opts} {packages}

[testenv:pypy]
deps = -rpypy-test-requirements.txt

[testenv:flake8]
commands = flake8 autopush
deps = -rtest-requirements.txt

0 comments on commit 0b79097

Please sign in to comment.