Skip to content
Myr

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

6 files+21 added−151 removed

modified:.travis.yml+2 added-2 removed
modified:Makefile+5 added-13 removed
1.PHONY: docs22init:4 pip install pipenv5 pipenv install --dev6 pipenv run pip install -e .[socks]73 pip install -r requirements.txt4test: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 detox78test-readme:14 pipenv run python setup.py check -r -s9 python setup.py check -r -s1011coverage: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 tests1319certs:20 curl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o requests/cacert.pem2114publish:15 pip install 'twine>=1.5.0'16 python setup.py sdist bdist_wheel17 twine upload dist/*
5 unmodified lines
deleted:Pipfile-14 removed
1[[source]]2url = "https://pypi.python.org/simple"3verify_ssl = true45[dev-packages]6pytest = ">=2.8.0"7codecov = "*"8pytest-httpbin = "==0.0.7"9pytest-mock = "*"10pytest-cov = "*"11alabaster = "*"12readme_renderer = "*"13Sphinx = "<=1.5.5"14PySocks = "*"
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]2pytest==3.1.03pytest-cov==2.5.12pytest>=2.8.03codecov4pytest-httpbin==0.0.75pytest-mock==1.6.06pytest-xdist==1.16.05pytest-mock6pytest-cov7pytest-xdist8alabaster9readme_renderer10Sphinx<=1.5.511PySocks12setuptools>=18.513tox14detox
modified:setup.py+2 added-2 removed
14 unmodified lines
15 user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]1617 def initialize_options(self):18 TestCommand.initialize_options(self)19 self.pytest_args = []19 self.pytest_args = ['-n', '8', '--boxed']2021 def finalize_options(self):22 TestCommand.finalize_options(self)23 self.test_args = []
19 unmodified lines
43 'urllib3>=1.21.1,<1.22',44 'certifi>=2017.4.17'4546]47test_requirements = ['pytest>=2.8.0', 'pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock', 'pytest-xdist', 'PySocks>=1.5.6, !=1.5.7']47test_requirements = ['pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock', 'pytest-xdist', 'PySocks>=1.5.6, !=1.5.7', 'pytest>=2.8.0']4849about = {}50with open(os.path.join(here, 'requests', '__version__.py'), 'r', 'utf-8') as f:51 exec(f.read(), about)
46 unmodified lines