forked from numenta/htmresearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
81 lines (62 loc) · 2.08 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: '{build}'
branches:
except:
- gh-pages
#---------------------------------#
# environment configuration #
#---------------------------------#
# http://www.appveyor.com/docs/environment-variables
# http://www.appveyor.com/docs/installed-software
init:
- git config --global core.autocrlf input
# Can't have a shallow clone because the CMake process will be
# calling into git to write the current SHA into the binaries.
shallow_clone: false
clone_folder: c:\projects\htmresearch
clone_depth: 1
environment:
PYTHONPATH: "%PYTHONHOME%"
PATH: "%PYTHONHOME%\\Scripts;%PYTHONHOME%;%PATH%"
matrix:
# Win64-gcc
- PYTHON_VERSION: "2.7.13"
PYTHON_ARCH: "64"
PYTHONHOME: "C:\\Python27-x64"
# Win32-gcc
#- PYTHON_VERSION: "2.7.13"
#PYTHON_ARCH: "32"
#PYTHONHOME: "C:\\Python27"
#---------------------------------#
# build configuration #
#---------------------------------#
# configuration values must be compatible with CMAKE_BUILD_TYPE: Debug or Release
configuration: Release
install:
- python -m pip install -U pip
- pip install --upgrade setuptools wheel
- pip install -r requirements.txt
build_script:
# Build python wheel
- python setup.py bdist_wheel
before_test:
- pip install --find-links=%APPVEYOR_BUILD_FOLDER%\dist htmresearch
test_script:
# python tests
- ps: |
cd $env:APPVEYOR_BUILD_FOLDER
py.test --junitxml=py_test_report.xml -n 6 tests/frameworks/layers/ tests/regions/ tests/algorithms/
on_finish:
- ps: |
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path py_test_report.xml))
after_test:
- cmd: |
for /f %%i in ('type VERSION') do set VERSION=%%i
copy %APPVEYOR_BUILD_FOLDER%\dist\htmresearch-%VERSION%-py2-none-any.whl %APPVEYOR_BUILD_FOLDER%\htmresearch-%APPVEYOR_REPO_COMMIT%-py2-none-any.whl
artifacts:
- path: '*.whl'
name: htmresearch