mirror of
				https://github.com/arsenetar/send2trash.git
				synced 2025-09-11 18:08:16 +00:00 
			
		
		
		
	Add Python 3.7 and Windows to Travis-CI
This commit is contained in:
		
							parent
							
								
									1c32d471f2
								
							
						
					
					
						commit
						94b7a5f4ac
					
				
							
								
								
									
										21
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								.travis.yml
									
									
									
									
									
								
							@ -4,7 +4,24 @@ python:
 | 
				
			|||||||
  - "3.4"
 | 
					  - "3.4"
 | 
				
			||||||
  - "3.5"
 | 
					  - "3.5"
 | 
				
			||||||
  - "3.6"
 | 
					  - "3.6"
 | 
				
			||||||
 | 
					matrix:
 | 
				
			||||||
 | 
					  include:
 | 
				
			||||||
 | 
					    # Obtain Python 3.7 from xenial as per https://github.com/travis-ci/travis-ci/issues/9815
 | 
				
			||||||
 | 
					    - python: "3.7"
 | 
				
			||||||
 | 
					      dist: xenial
 | 
				
			||||||
 | 
					    - os: windows
 | 
				
			||||||
 | 
					      language: sh
 | 
				
			||||||
 | 
					      python: 3
 | 
				
			||||||
 | 
					      # Perform the manual steps on windows to install python3 and tox
 | 
				
			||||||
 | 
					      before_install:
 | 
				
			||||||
 | 
					        - choco install python3 --params "/InstallDir:C:\Python"
 | 
				
			||||||
 | 
					        - export PATH="/c/Python:/c/Python/Scripts:$PATH"
 | 
				
			||||||
 | 
					        - python -m pip install --upgrade pip
 | 
				
			||||||
 | 
					      before_script:
 | 
				
			||||||
 | 
					        - export TOXENV=py3-win
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
  - "pip install tox"
 | 
					  - pip install tox
 | 
				
			||||||
 | 
					before_script:
 | 
				
			||||||
 | 
					  - export TOXENV=$(echo py$TRAVIS_PYTHON_VERSION | tr -d .)
 | 
				
			||||||
script:
 | 
					script:
 | 
				
			||||||
  - "tox -e $(echo py$TRAVIS_PYTHON_VERSION | tr -d .)"
 | 
					  - tox
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										8
									
								
								tox.ini
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								tox.ini
									
									
									
									
									
								
							@ -1,11 +1,17 @@
 | 
				
			|||||||
[tox]
 | 
					[tox]
 | 
				
			||||||
envlist = py27,py34,py35,py36
 | 
					envlist = py27,py34,py35,py36,py3-win
 | 
				
			||||||
skip_missing_interpreters = True
 | 
					skip_missing_interpreters = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[testenv]
 | 
					[testenv]
 | 
				
			||||||
 | 
					platform = linux
 | 
				
			||||||
commands =
 | 
					commands =
 | 
				
			||||||
    python setup.py test
 | 
					    python setup.py test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[testenv:py3-win]
 | 
				
			||||||
 | 
					platform = win
 | 
				
			||||||
 | 
					commands =
 | 
				
			||||||
 | 
					    python setup.py test --test-suite tests.test_plat_win
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[testenv:py27]
 | 
					[testenv:py27]
 | 
				
			||||||
deps =
 | 
					deps =
 | 
				
			||||||
    configparser
 | 
					    configparser
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user