| 
									
										
										
										
											2018-12-21 01:56:24 +00:00
										 |  |  | #Docs: https://www.appveyor.com/docs/appveyor-yml/
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #https://github.com/vasole/fisx/blob/master/appveyor.yml
 | 
					
						
							|  |  |  | #https://github.com/sdispater/poetry/blob/master/.appveyor.yml
 | 
					
						
							|  |  |  | #https://github.com/sdispater/pendulum/blob/master/appveyor.yml
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | branches:
 | 
					
						
							|  |  |  |   # whitelist
 | 
					
						
							|  |  |  |   only:
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:44:21 +00:00
										 |  |  |     - master
 | 
					
						
							| 
									
										
										
										
											2018-12-21 01:56:24 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | image: Visual Studio 2017
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:49:21 +00:00
										 |  |  | shallow_clone: true
 | 
					
						
							| 
									
										
										
										
											2018-12-21 01:56:24 +00:00
										 |  |  | environment:
 | 
					
						
							|  |  |  |   matrix:
 | 
					
						
							|  |  |  |     # For Python versions available on Appveyor, see
 | 
					
						
							|  |  |  |     # https://www.appveyor.com/docs/windows-images-software/ or
 | 
					
						
							|  |  |  |     # https://www.appveyor.com/docs/linux-images-software/
 | 
					
						
							| 
									
										
										
										
											2019-01-09 11:30:58 +00:00
										 |  |  |     - pydir: 'C:\Python36-x64'
 | 
					
						
							|  |  |  |     - pydir: 'C:\Python37'
 | 
					
						
							| 
									
										
										
										
											2018-12-21 01:56:24 +00:00
										 |  |  |   global:
 | 
					
						
							|  |  |  |     py: '%pydir%\python.exe'
 | 
					
						
							|  |  |  |     APPVEYOR_SAVE_CACHE_ON_ERROR: true
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cache:
 | 
					
						
							|  |  |  | - '%LOCALAPPDATA%\pypoetry\Cache -> .appveyor\clear-caches'
 | 
					
						
							| 
									
										
										
										
											2018-12-24 01:18:08 +00:00
										 |  |  | - '%USERPROFILE%\.poetry -> .appveyor\clear-caches'
 | 
					
						
							| 
									
										
										
										
											2018-12-21 01:56:24 +00:00
										 |  |  |     # \cache\repositories\pypi\
 | 
					
						
							|  |  |  |     # \virtualenvs\xyz-py3.x\
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | install:
 | 
					
						
							| 
									
										
										
										
											2018-12-24 03:43:20 +00:00
										 |  |  |   # needed? to fix `appveyor` command
 | 
					
						
							|  |  |  |   - 'set PATH=C:\Program Files\AppVeyor\BuildAgent\;%PATH%'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-21 01:56:24 +00:00
										 |  |  |   - 'curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | %py%'
 | 
					
						
							| 
									
										
										
										
											2018-12-24 03:43:20 +00:00
										 |  |  |   - 'set PATH=%USERPROFILE%\.poetry\bin;%PATH%'
 | 
					
						
							| 
									
										
										
										
											2018-12-21 01:56:24 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   # Prevents: "The current Python version (2.7.15) is not supported by the project (^3.6)"
 | 
					
						
							|  |  |  |   - 'set PATH=%pydir%;%pydir%\bin;%pydir%\Scripts;%PATH%'
 | 
					
						
							|  |  |  |   - 'poetry install -v'  # don't pass --no-dev
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | build_script:
 | 
					
						
							|  |  |  |   - exit
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | test_script:
 | 
					
						
							|  |  |  |   - 'poetry run pytest --tb=short'
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | after_test:
 | 
					
						
							| 
									
										
										
										
											2019-01-09 11:30:58 +00:00
										 |  |  |   - 'if not "%pydir%"=="C:\Python37" appveyor exit'
 | 
					
						
							| 
									
										
										
										
											2018-12-24 01:10:10 +00:00
										 |  |  |   # Running pyinstaller is much faster on x64 I think,
 | 
					
						
							|  |  |  |   # but the resulting files are 64-bit only.
 | 
					
						
							| 
									
										
										
										
											2018-12-21 01:56:24 +00:00
										 |  |  |   - 'poetry build'
 | 
					
						
							| 
									
										
										
										
											2019-01-04 10:18:53 +00:00
										 |  |  |   - 'poetry run pyinstaller corrscope.spec -y --log-level DEBUG'
 | 
					
						
							| 
									
										
										
										
											2018-12-21 01:56:24 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | artifacts:
 | 
					
						
							|  |  |  |   - path: 'dist\*'
 | 
					
						
							|  |  |  |   - path: 'dist\corrscope'
 |