Skip to content

Commit

Permalink
new: pkg: added windows tests thanks to appveyor.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaab committed Apr 11, 2017
1 parent a300573 commit aae3baa
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Colour
:target: https://travis-ci.org/vaab/colour/
:alt: Travis CI build status

.. image:: https://img.shields.io/appveyor/ci/vaab/colour.svg
:target: https://ci.appveyor.com/project/vaab/colour/branch/master
:alt: Appveyor CI build status

.. image:: http://img.shields.io/codecov/c/github/vaab/colour.svg?style=flat
:target: https://codecov.io/gh/vaab/colour/
:alt: Test coverage
Expand Down
43 changes: 43 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# What Python version is installed where:
# http://www.appveyor.com/docs/installed-software#python

environment:
global:
PYTHONIOENCODING: utf-8
matrix:
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python27-x64"
- PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python34-x64"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python36-x64"

## Before repo cloning
init:
## without this, temporary directory could be created in current dir
## which will make some tests fail.
- mkdir C:\TMP
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python -V

## After repo cloning
install:

build: false

## Before tests
before_test:
- for /f %%i in ('bash .\autogen.sh --get-name') do set PACKAGE_NAME=%%i
- python setup.py develop easy_install %PACKAGE_NAME%[test]
- pip install coverage codecov

## Custom test script
test_script:

## real tests
- nosetests -sx .

after_test:
- "codecov & REM #dovis: ignore"

0 comments on commit aae3baa

Please sign in to comment.