From 8c31d55a8642eb4aba62b96d28125b71b8d338b1 Mon Sep 17 00:00:00 2001 From: drasmuss Date: Tue, 11 Jul 2017 09:39:44 -0400 Subject: [PATCH] Add appveyor build --- README.rst | 4 ++++ appveyor.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 appveyor.yml diff --git a/README.rst b/README.rst index 66b328935..e6e2abe62 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..d4003bfe9 --- /dev/null +++ b/appveyor.yml @@ -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 + )