Skip to content

Commit

Permalink
Add an appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 15, 2015
1 parent 8908389 commit ee8646c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions appveyor.yml
@@ -0,0 +1,25 @@
version: build-{build}-{branch}

environment:
matrix:
# http://www.appveyor.com/docs/installed-software#python lists available
# versions
- PYTHON: "C:\\Python27"

init:
- "echo %PYTHON%"

install:
- "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- python --version
- pip install tox
# pygame installation cargo-culted from https://github.com/a-tal/fallingsky/blob/cae0df8eedff8be3e9e333258ff565c1f1441886/appveyor.yml
# only I replaced the http:// url with https:// despite the semi-broken SHA-1 certificate
- ps: Start-FileDownload 'https://pygame.org/ftp/pygame-1.9.2a0.win32-py2.7.msi'
- ps: Start-Process -FilePath msiexec -ArgumentList /i, "pygame-1.9.2a0.win32-py2.7.msi", /qb, ADDLOCAL=ALL, ALLUSERS=1 -Wait
- 'python -c "import pygame; print(pygame.__version__)"'

build: off

test_script:
- tox -e py
7 changes: 7 additions & 0 deletions tox.ini
Expand Up @@ -26,3 +26,10 @@ deps =
commands =
coverage run --source=src/pyspacewar test.py
coverage report


[testenv:py]
sitepackages = true
commands =
python --version
{[testenv]commands}

0 comments on commit ee8646c

Please sign in to comment.