Merge pull request #4083 from kennethreitz/faster-ci
Before adoption: this commit came in with the history the project adopted, so no landing records it.
faster ci (test)
authored by Kenneth Reitz · committed by GitHub · parents 03944f4, 8d0c253 · Browse files · 6 files·+21 added−151 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+21 added−151 removed
- other:+21 added−151 removed
Provenance
- Commit
148ab30- Tree
9af575e- Author
Kenneth Reitz <me@kennethreitz.org>- Committer
GitHub <noreply@github.com>- Parent 1
03944f4- Parent 2
8d0c253
6 files changed+21 added−151 removed
modified:.travis.yml+2 added-2 removed
5 unmodified lines67891010111213141516171819192021225 unmodified lines - "3.3" - "3.4" - "3.5" - "3.6" - "3.7-dev" # - "3.7-dev" # - "pypy" -- appears to hang # - "pypy3"# command to install dependenciesinstall: "make"# command to run testsscript: - | if [[ "$TRAVIS_PYTHON_VERSION" != "2.6" ]] ; then make test-readme; fi - make coverage - make testafter_success: - pipenv run codecovcache: pipmodified:Makefile+5 added-13 removed
1 .PHONY: docs2-2 init:4- pip install pipenv5- pipenv install --dev6- pipenv run pip install -e .[socks]7-3+ pip install -r requirements.txt4 test:9- # This runs all of the tests. To run an individual test, run py.test with10- # the -k flag, like "py.test -k test_path_is_not_double_encoded"11- pipenv run py.test tests5+ # This runs all of the tests, on both Python 2 and Python 3.6+ detox7 8 test-readme:14- pipenv run python setup.py check -r -s9+ python setup.py check -r -s10 11 coverage:17- pipenv run py.test --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=requests tests12+ py.test --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=requests tests13 19-certs:20- curl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o requests/cacert.pem21-14 publish:15 pip install 'twine>=1.5.0'16 python setup.py sdist bdist_wheel17 twine upload dist/*5 unmodified linesdeleted:Pipfile-14 removed
1-[[source]]2-url = "https://pypi.python.org/simple"3-verify_ssl = true4-5-[dev-packages]6-pytest = ">=2.8.0"7-codecov = "*"8-pytest-httpbin = "==0.0.7"9-pytest-mock = "*"10-pytest-cov = "*"11-alabaster = "*"12-readme_renderer = "*"13-Sphinx = "<=1.5.5"14-PySocks = "*"deleted:Pipfile.lock-116 removed
1-{2- "_meta": {3- "hash": {4- "sha256": "a26ef57f42fa3da7d70d1c1decb4e6445a6ff66e47c9094ddc9ab8e1f4c0a5b6"5- },6- "requires": {},7- "sources": [8- {9- "url": "https://pypi.python.org/simple",10- "verify_ssl": true11- }12- ]13- },14- "default": {},15- "develop": {16- "alabaster": {17- "version": "==0.7.10"18- },19- "appdirs": {20- "version": "==1.4.3"21- },22- "babel": {23- "version": "==2.4.0"24- },25- "click": {26- "version": "==6.7"27- },28- "codecov": {29- "version": "==2.0.9"30- },31- "coverage": {32- "version": "==4.4.1"33- },34- "decorator": {35- "version": "==4.0.11"36- },37- "docutils": {38- "version": "==0.13.1"39- },40- "flask": {41- "version": "==0.12.2"42- },43- "funcsigs": {44- "version": "==1.0.2"45- },46- "httpbin": {47- "version": "==0.5.0"48- },49- "imagesize": {50- "version": "==0.7.1"51- },52- "itsdangerous": {53- "version": "==0.24"54- },55- "jinja2": {56- "version": "==2.9.6"57- },58- "markupsafe": {59- "version": "==1.0"60- },61- "mock": {62- "version": "==2.0.0"63- },64- "packaging": {65- "version": "==16.8"66- },67- "pbr": {68- "version": "==3.0.0"69- },70- "py": {71- "version": "==1.4.33"72- },73- "pygments": {74- "version": "==2.2.0"75- },76- "pyparsing": {77- "version": "==2.2.0"78- },79- "pysocks": {80- "version": "==1.6.7"81- },82- "pytest": {83- "version": "==3.0.7"84- },85- "pytest-cov": {86- "version": "==2.5.1"87- },88- "pytest-httpbin": {89- "version": "==0.0.7"90- },91- "pytest-mock": {92- "version": "==1.6.0"93- },94- "pytz": {95- "version": "==2017.2"96- },97- "requests": {98- "version": "==2.14.2"99- },100- "setuptools": {101- "version": "==35.0.2"102- },103- "six": {104- "version": "==1.10.0"105- },106- "snowballstemmer": {107- "version": "==1.2.1"108- },109- "sphinx": {110- "version": "==1.5.5"111- },112- "werkzeug": {113- "version": "==0.12.2"114- }115- }116-}modified:requirements.txt+12 added-4 removed
1 -e .[socks]2-pytest==3.1.03-pytest-cov==2.5.12+pytest>=2.8.03+codecov4 pytest-httpbin==0.0.75-pytest-mock==1.6.06-pytest-xdist==1.16.05+pytest-mock6+pytest-cov7+pytest-xdist8+alabaster9+readme_renderer10+Sphinx<=1.5.511+PySocks12+setuptools>=18.513+tox14+detoxmodified:setup.py+2 added-2 removed
14 unmodified lines15 user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]16 17 def initialize_options(self):18 TestCommand.initialize_options(self)19- self.pytest_args = []19+ self.pytest_args = ['-n', '8', '--boxed']20 21 def finalize_options(self):22 TestCommand.finalize_options(self)23 self.test_args = []19 unmodified lines43 'urllib3>=1.21.1,<1.22',44 'certifi>=2017.4.17'45 46 ]47-test_requirements = ['pytest>=2.8.0', 'pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock', 'pytest-xdist', 'PySocks>=1.5.6, !=1.5.7']47+test_requirements = ['pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock', 'pytest-xdist', 'PySocks>=1.5.6, !=1.5.7', 'pytest>=2.8.0']48 49 about = {}50 with open(os.path.join(here, 'requests', '__version__.py'), 'r', 'utf-8') as f:51 exec(f.read(), about)46 unmodified lines