forked from PyThaiNLP/pythainlp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
75 lines (65 loc) · 2.85 KB
/
appveyor.yml
File metadata and controls
75 lines (65 loc) · 2.85 KB
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
# Use unofficial Windows Binaries for Python Extension Packages from
# https://www.lfd.uci.edu/~gohlke/pythonlibs/
build: off
image: Visual Studio 2015
environment:
global:
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
matrix:
# - PYTHON: "C:/Python36"
# PYTHON_VERSION: "3.6"
# PYTHON_ARCH: "32"
# ARTAGGER_PKG: "https://github.com/franziz/artagger/archive/master.zip"
# PYICU_PKG: "https://www.dropbox.com/s/pahorbq29y9cura/PyICU-2.3.1-cp36-cp36m-win32.whl?dl=1"
- PYTHON: "C:/Python36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
ARTAGGER_PKG: "https://github.com/franziz/artagger/archive/master.zip"
PYICU_PKG: "https://www.dropbox.com/s/7t0rrxwckqbgivi/PyICU-2.3.1-cp36-cp36m-win_amd64.whl?dl=1"
DISTUTILS_USE_SDK: "1"
# - PYTHON: "C:/Python37"
# PYTHON_VERSION: "3.7"
# PYTHON_ARCH: "32"
# ARTAGGER_PKG: "https://github.com/franziz/artagger/archive/master.zip"
# PYICU_PKG: "https://www.dropbox.com/s/3xwdnwhdcu619x4/PyICU-2.3.1-cp37-cp37m-win32.whl?dl=1"
- PYTHON: "C:/Python37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
ARTAGGER_PKG: "https://github.com/franziz/artagger/archive/master.zip"
PYICU_PKG: "https://www.dropbox.com/s/le5dckc3231opqt/PyICU-2.3.1-cp37-cp37m-win_amd64.whl?dl=1"
DISTUTILS_USE_SDK: "1"
# - PYTHON: "C:/Python38-x64"
# PYTHON_VERSION: "3.8"
# PYTHON_ARCH: "64"
# ARTAGGER_PKG: "https://github.com/franziz/artagger/archive/master.zip"
# PYICU_PKG: "https://www.dropbox.com/s/o6p2sj5z50iim1e/PyICU-2.3.1-cp38-cp38-win_amd64.whl?dl=0"
# DISTUTILS_USE_SDK: "1"
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
# - ps: "ls C:/Python*"
platform:
- x64
install:
- "chcp 65001"
- "set PYTHONIOENCODING=utf-8"
- "%PYTHON%\\python.exe -m pip install wheel"
# - ECHO "Installed SDKs:"
# - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
- IF "%ARCH%"=="32" (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86) ELSE (ECHO "probably a 64bit build")
- IF "%ARCH%"=="64" (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64) ELSE (ECHO "probably a 32bit build")
- '"%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" %PLATFORM%'
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python --version"
# - "set ICU_VERSION=62"
- "pip install --disable-pip-version-check --user --upgrade pip setuptools"
- "pip install coveralls[yaml]"
- "pip install coverage"
# There is no 32-bit build for torch
- "pip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html"
- "pip install %PYICU_PKG%"
- "pip install %ARTAGGER_PKG%"
- "pip install -e .[full]"
test_script:
- "pip --version"
- "python setup.py test"