Skip to content

Commit

Permalink
Add appveyor build
Browse files Browse the repository at this point in the history
  • Loading branch information
drasmuss committed Jul 11, 2017
1 parent 0d31724 commit 8c31d55
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
:target: https://travis-ci.org/nengo/nengo_dl
:alt: Travis-CI build status

.. image:: https://img.shields.io/appveyor/ci/nengo/nengo-dl/master.svg
:target: https://ci.appveyor.com/project/nengo/nengo-dl
:alt: AppVeyor build status

.. image:: https://img.shields.io/codecov/c/github/nengo/nengo_dl/master.svg
:target: https://codecov.io/gh/nengo/nengo_dl/branch/master
:alt: Test coverage
Expand Down
44 changes: 44 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
environment:
MODE: test
PYTHON_VERSION: C:\Miniconda35-x64
NENGO_DL_TEST_PRECISION: 32
NENGO_DL_TEST_UNROLL: 1
NUMPY_VERSION: numpy
TF_VERSION: tensorflow
NENGO_VERSION: nengo

matrix:
- MODE: test # default build
# - MODE: examples # TODO: some problem with nbval on windows (timeout)
- PYTHON_VERSION: C:\Miniconda36-x64
- NUMPY_VERSION: numpy==1.11.0
TF_VERSION: tensorflow==1.2.0
NENGO_VERSION: nengo==2.3.1

init:
- set PATH=%PYTHON_VERSION%;%PYTHON_VERSION%\\Scripts;%PATH%

install:
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda install %NUMPY_VERSION% matplotlib
- pip install %TF_VERSION%
- pip install %NENGO_VERSION%
- pip install -r requirements-test.txt
- if %MODE% == examples (
conda install pandoc jupyter &
pip install -r requirements-docs.txt
)
- pip install -e .
- conda list -e
- pip freeze

build: false # Not a C# project

test_script:
- if %MODE% == examples (
py.test -v --durations 20 --nbval-lax docs/examples
) else (
py.test -n 2 --pyargs nengo && py.test -n 2 --durations 20 nengo_dl
)

0 comments on commit 8c31d55

Please sign in to comment.