Merge pull request #2060 from pytest-dev/master
Merge master into features due to recent CI updates
This commit is contained in:
		
						commit
						75740337d1
					
				| 
						 | 
					@ -22,13 +22,17 @@ env:
 | 
				
			||||||
    - TESTENV=py27-trial
 | 
					    - TESTENV=py27-trial
 | 
				
			||||||
    - TESTENV=py35-pexpect
 | 
					    - TESTENV=py35-pexpect
 | 
				
			||||||
    - TESTENV=py35-xdist
 | 
					    - TESTENV=py35-xdist
 | 
				
			||||||
    # Disable py35-trial temporarily: #1989
 | 
					    - TESTENV=py35-trial
 | 
				
			||||||
    #- TESTENV=py35-trial
 | 
					 | 
				
			||||||
    - TESTENV=py27-nobyte
 | 
					    - TESTENV=py27-nobyte
 | 
				
			||||||
    - TESTENV=doctesting
 | 
					    - TESTENV=doctesting
 | 
				
			||||||
    - TESTENV=freeze
 | 
					    - TESTENV=freeze
 | 
				
			||||||
    - TESTENV=docs
 | 
					    - TESTENV=docs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					matrix:
 | 
				
			||||||
 | 
					  allow_failures:
 | 
				
			||||||
 | 
					    # py35-trial failing on Linux: #1989
 | 
				
			||||||
 | 
					    - env: TESTENV=py35-trial
 | 
				
			||||||
 | 
					
 | 
				
			||||||
script: tox --recreate -e $TESTENV
 | 
					script: tox --recreate -e $TESTENV
 | 
				
			||||||
 | 
					
 | 
				
			||||||
notifications:
 | 
					notifications:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,6 +9,9 @@ include HOWTORELEASE.rst
 | 
				
			||||||
include tox.ini
 | 
					include tox.ini
 | 
				
			||||||
include setup.py
 | 
					include setup.py
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					recursive-include scripts *.py
 | 
				
			||||||
 | 
					recursive-include scripts *.bat
 | 
				
			||||||
 | 
					
 | 
				
			||||||
include .coveragerc
 | 
					include .coveragerc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
recursive-include bench *.py
 | 
					recursive-include bench *.py
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										33
									
								
								appveyor.yml
								
								
								
								
							
							
						
						
									
										33
									
								
								appveyor.yml
								
								
								
								
							| 
						 | 
					@ -6,25 +6,30 @@ environment:
 | 
				
			||||||
    # https://www.appveyor.com/docs/build-configuration#secure-variables
 | 
					    # https://www.appveyor.com/docs/build-configuration#secure-variables
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  matrix:
 | 
					  matrix:
 | 
				
			||||||
  # create multiple jobs to execute a set of tox runs on each; this is to workaround having
 | 
					  # note: please use "tox --listenvs" to populate the build matrix below
 | 
				
			||||||
  # builds timing out in AppVeyor
 | 
					  - TOXENV: "linting"
 | 
				
			||||||
  # pypy is disabled until #1963 gets fixed
 | 
					  - TOXENV: "py26"
 | 
				
			||||||
  - TOXENV: "linting,py26,py27,py33,py34,py35"
 | 
					  - TOXENV: "py27"
 | 
				
			||||||
  - TOXENV: "py27-pexpect,py27-xdist,py27-trial,py35-pexpect,py35-xdist,py35-trial"
 | 
					  - TOXENV: "py33"
 | 
				
			||||||
  - TOXENV: "py27-nobyte,doctesting,freeze,docs"
 | 
					  - TOXENV: "py34"
 | 
				
			||||||
 | 
					  - TOXENV: "py35"
 | 
				
			||||||
 | 
					  - TOXENV: "pypy"
 | 
				
			||||||
 | 
					  - TOXENV: "py27-pexpect"
 | 
				
			||||||
 | 
					  - TOXENV: "py27-xdist"
 | 
				
			||||||
 | 
					  - TOXENV: "py27-trial"
 | 
				
			||||||
 | 
					  - TOXENV: "py35-pexpect"
 | 
				
			||||||
 | 
					  - TOXENV: "py35-xdist"
 | 
				
			||||||
 | 
					  - TOXENV: "py35-trial"
 | 
				
			||||||
 | 
					  - TOXENV: "py27-nobyte"
 | 
				
			||||||
 | 
					  - TOXENV: "doctesting"
 | 
				
			||||||
 | 
					  - TOXENV: "freeze"
 | 
				
			||||||
 | 
					  - TOXENV: "docs"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
  - echo Installed Pythons
 | 
					  - echo Installed Pythons
 | 
				
			||||||
  - dir c:\Python*
 | 
					  - dir c:\Python*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # install pypy using choco (redirect to a file and write to console in case
 | 
					  - if "%TOXENV%" == "pypy" scripts\install-pypy.bat
 | 
				
			||||||
  # choco install returns non-zero, because choco install python.pypy is too
 | 
					 | 
				
			||||||
  # noisy)
 | 
					 | 
				
			||||||
  # pypy is disabled until #1963 gets fixed
 | 
					 | 
				
			||||||
  #- choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
 | 
					 | 
				
			||||||
  #- set PATH=C:\tools\pypy\pypy;%PATH% # so tox can find pypy
 | 
					 | 
				
			||||||
  #- echo PyPy installed
 | 
					 | 
				
			||||||
  #- pypy --version
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - C:\Python35\python -m pip install tox
 | 
					  - C:\Python35\python -m pip install tox
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,6 +11,9 @@ Talks and Tutorials
 | 
				
			||||||
Talks and blog postings
 | 
					Talks and blog postings
 | 
				
			||||||
---------------------------------------------
 | 
					---------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- `Pythonic testing, Igor Starikov (Russian, PyNsk, November 2016)
 | 
				
			||||||
 | 
					  <https://www.youtube.com/watch?v=_92nfdd5nK8>`_.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- `pytest - Rapid Simple Testing, Florian Bruhin, Swiss Python Summit 2016
 | 
					- `pytest - Rapid Simple Testing, Florian Bruhin, Swiss Python Summit 2016
 | 
				
			||||||
  <https://www.youtube.com/watch?v=rCBHkQ_LVIs>`_.
 | 
					  <https://www.youtube.com/watch?v=rCBHkQ_LVIs>`_.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,21 @@
 | 
				
			||||||
 | 
					"""
 | 
				
			||||||
 | 
					Script used by tox.ini to check the manifest file if we are under version control, or skip the
 | 
				
			||||||
 | 
					check altogether if not.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"check-manifest" will needs a vcs to work, which is not available when testing the package
 | 
				
			||||||
 | 
					instead of the source code (with ``devpi test`` for example).
 | 
				
			||||||
 | 
					"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					from __future__ import print_function
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import os
 | 
				
			||||||
 | 
					import subprocess
 | 
				
			||||||
 | 
					import sys
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if os.path.isdir('.git'):
 | 
				
			||||||
 | 
					    sys.exit(subprocess.call('check-manifest', shell=True))
 | 
				
			||||||
 | 
					else:
 | 
				
			||||||
 | 
					    print('No .git directory found, skipping checking the manifest file')
 | 
				
			||||||
 | 
					    sys.exit(0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					REM install pypy using choco
 | 
				
			||||||
 | 
					REM redirect to a file because choco install python.pypy is too noisy. If the command fails, write output to console
 | 
				
			||||||
 | 
					choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
 | 
				
			||||||
 | 
					set PATH=C:\tools\pypy\pypy;%PATH% # so tox can find pypy
 | 
				
			||||||
 | 
					echo PyPy installed
 | 
				
			||||||
 | 
					pypy --version
 | 
				
			||||||
							
								
								
									
										2
									
								
								tox.ini
								
								
								
								
							
							
						
						
									
										2
									
								
								tox.ini
								
								
								
								
							| 
						 | 
					@ -52,7 +52,7 @@ deps =
 | 
				
			||||||
    restructuredtext_lint
 | 
					    restructuredtext_lint
 | 
				
			||||||
    check-manifest
 | 
					    check-manifest
 | 
				
			||||||
commands =
 | 
					commands =
 | 
				
			||||||
    check-manifest
 | 
					    {envpython} scripts/check-manifest.py
 | 
				
			||||||
    flake8 pytest.py _pytest testing
 | 
					    flake8 pytest.py _pytest testing
 | 
				
			||||||
    rst-lint CHANGELOG.rst HOWTORELEASE.rst README.rst
 | 
					    rst-lint CHANGELOG.rst HOWTORELEASE.rst README.rst
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue