-
Notifications
You must be signed in to change notification settings - Fork 22
/
appveyor.yml
66 lines (58 loc) · 2.64 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
environment:
matrix:
# For Python versions available on Appveyor, see
# http://www.appveyor.com/docs/installed-software#python
- PYTHON: "C:\\Miniconda"
- PYTHON: "C:\\Miniconda-x64"
- PYTHON: "C:\\Miniconda36"
- PYTHON: "C:\\Miniconda36-x64"
twineargs:
secure: Hj0/nwvDm2ghYAjXDELxtkKOroTwKq1hDRekkNCSEdG9lsIn/8ymmF6RuNN7scSa
install:
- "%PYTHON%\\python.exe -m conda update -q --yes conda"
- "%PYTHON%\\python.exe -m conda install -q --yes pip numpy scipy nltk unidecode decorator chardet ujson requests matplotlib notebook"
- "%PYTHON%\\python.exe -m conda install -q --yes cython scikit-learn pandas" # for vsm
- "%PYTHON%\\python.exe -c \"import nltk; nltk.download('stopwords'); nltk.download('punkt')\""
- "%PYTHON%\\python.exe -m pip install unittest2 nose wget"
- "%PYTHON%\\python.exe -m pip install ."
build: off
version: '1.0.{build}'
test_script:
# Put your test command here.
# If you don't need to build C extensions on 64-bit Python 3.3 or 3.4,
# you can remove "build.cmd" from the front of the command, as it's
# only needed to support those cases.
# Note that you must use the environment variable %PYTHON% to refer to
# the interpreter you're using - Appveyor does not do anything special
# to put the Python evrsion you want to use on PATH.
- "%PYTHON%\\python.exe -m topicexplorer version"
- "%PYTHON%\\python.exe -m topicexplorer.demo --no-launch"
- "%PYTHON%\\python.exe -m topicexplorer.train ap.ini --rebuild -k 20 40 60 --iter 20 --context-type article"
- ps: $MyProcess = Start-Process "$env:PYTHON\python.exe" -argument "-m topicexplorer.server -p 8000 --no-browser ap.ini" -PassThru
- ps: Start-Sleep -s 15
- ps: ./coverage.ps1
on_finish:
- ps: Stop-Process -Id $MyProcess.Id
#after_test:
# # This step builds your wheels.
# # Again, you only need build.cmd if you're building C extensions for
# # 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
# # interpreter
# - "%PYTHON%\\python.exe setup.py bdist_egg"
# - "%PYTHON%\\python.exe -m wheel convert dist\\*.egg"
#
#artifacts:
# # bdist_wheel puts your built wheel in the dist directory
# - path: dist\*
#deploy_script:
# - ps: >-
# if($env:appveyor_repo_tag -eq 'True') {
# if($env:appveyor_repo_branch -eq 'master') {
# & %PYTHON%\\python.exe -m pip install twine
# & %PYTHON%\\python.exe -m twine upload %twineargs% dist/*.whl
# }
# }
#on_success:
# You can use this step to upload your artifacts to a public website.
# See Appveyor's documentation for more details. Or you can simply
# access your wheels from the Appveyor "artifacts" tab for your build.