-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathappveyor.yml
35 lines (30 loc) · 999 Bytes
/
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
# https://pythonhosted.org/CodeChat/appveyor.yml.html
build: none
environment:
matrix:
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: 3.7.3
PYTHON_ARCH: 64
init:
- ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
install:
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
- python --version
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- python -m pip install -U pip
- python -m easy_install -U setuptools
# command to install dependencies
- pip install -e .[test]
# also need to download punkt tokeniser data
- python -m nltk.downloader punkt averaged_perceptron_tagger wordnet
test_script:
# for codecov support
- pip install pytest pytest-cov
# command to run tests
- cd tests
- pytest --cov-report term --cov-report xml --cov=../ ./
# after_test:
# - ps: |
# $env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
# Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
# bash codecov.sh -f "coverage.xml"