Skip to content

Commit

Permalink
Ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBachmann committed Feb 6, 2021
1 parent 19ac38a commit 24e908c
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,49 @@ install:
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- ps: If(($env:PYTHON).Contains("pypy37")) { (New-Object Net.WebClient).DownloadFile('https://downloads.python.org/pypy/pypy3.7-v7.3.3-win32.zip', "$env:appveyor_build_folder\pypy3.zip"); 7z x pypy3.zip | Out-Null; move pypy3.7-v7.3.3-win32 C:\pypy3; copy C:\pypy3\pypy.exe C:\pypy3\python.exe }
- ps: If(($env:PYTHON).Contains("pypy37")) { (New-Object Net.WebClient).DownloadFile('https://downloads.python.org/pypy/pypy3.7-v7.3.3-win32.zip', "$env:appveyor_build_folder\pypy3.zip"); 7z x pypy3.zip | Out-Null; move pypy3.7-v7.3.3-win32 C:\pypy3; copy C:\pypy3\pypy3.exe C:\pypy3\python.exe } # download and set up pypy
- ps: If(-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
- cmd: 'SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%'
- cmd: 'python --version'
- ps: If(($env:PYTHON).Contains("pypy")) { python -m ensurepip }
- cmd: "python -m pip install coverage coveralls"
clone_script:
- cmd: 'git clone https://github.com/ArneBachmann/tagsplorer .\'
image:
- Visual Studio 2015
- Ubuntu
environment:
PYTHONDONTWRITEBYTECODE: True # avoid writing __pycache__ dirs for Python 3
matrix:
- PYTHON: 'C:\Python36'
platform: x86
- PYTHON: 'C:\Python36-x64'
platform: x64
- PYTHON: 'C:\Python36'
platform: x86
- PYTHON: 'C:\Python36-x64'
platform: x64
- PYTHON: 'C:\Python37'
platform: x86
- PYTHON: 'C:\Python37-x64'
platform: x64
- PYTHON: 'C:\Python38'
platform: x86
- PYTHON: 'C:\Python38-x64'
platform: x64
- PYTHON: 'C:\Python39'
platform: x86
- PYTHON: 'C:\Python39-x64'
platform: x64
- PYTHON: 'C:\Miniconda36'
platform: x86
- PYTHON: 'C:\Miniconda36-x64'
platform: x64
- PYTHON: 'C:\pypy37'
platform: x86
- PYTHON: 'C:\Python36'
platform: x86
- PYTHON: 'C:\Python36-x64'
platform: x64
- PYTHON: 'C:\Python36'
platform: x86
- PYTHON: 'C:\Python36-x64'
platform: x64
- PYTHON: 'C:\Python37'
platform: x86
- PYTHON: 'C:\Python37-x64'
platform: x64
- PYTHON: 'C:\Python38'
platform: x86
- PYTHON: 'C:\Python38-x64'
platform: x64
- PYTHON: 'C:\Python39'
platform: x86
- PYTHON: 'C:\Python39-x64'
platform: x64
- PYTHON: 'C:\Miniconda36'
platform: x86
- PYTHON: 'C:\Miniconda36-x64'
platform: x64
- PYTHON: 'C:\pypy37'
platform: x86
build_script:
- cmd: python -B setup.py build
# Examples learned from https://social.technet.microsoft.com/wiki/contents/articles/7703.powershell-running-executables.aspx
test_script:
- cmd: python -B setup.py build # -B avoids writing .pyc files
test_script: # Examples learned from https://social.technet.microsoft.com/wiki/contents/articles/7703.powershell-running-executables.aspx
- ps: If(($env:PYTHON).Contains("pypy")) { & ($env:PYTHON + '\bin\coverage') 'run' '--branch' '--include' 'tests.py,tagsplorer/*.py' 'tests.py' } Else { coverage run --branch --include tests.py,tagsplorer/*.py tests.py }
after_test:
- ps: If(($env:PYTHON).Contains("pypy")) { & ($env:PYTHON + '\bin\coverage') 'html'; & ($env:PYTHON + '\bin\coverage') 'annotate' 'tests.py' } Else { coverage html; coverage annotate tests.py }
Expand Down

0 comments on commit 24e908c

Please sign in to comment.