forked from danielfrg/word2vec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
55 lines (47 loc) · 1.43 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
version: "{build}"
os: Windows Server 2012 R2
environment:
matrix:
- PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda
- PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda-x64
- PYTHON_VERSION: 3.5
MINICONDA: C:\Miniconda3
- PYTHON_VERSION: 3.5
MINICONDA: C:\Miniconda3-x64
branches:
only:
- master
clone_folder: c:\workspace\word2vec
install:
- set PATH=C:\\MinGW\\bin;%PATH%
- set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%
- echo %PATH%
- conda config --set always_yes yes
- conda update -q conda
- conda info -a
build_script:
- conda install python=%PYTHON_VERSION% -y -q
- conda install --file .ci/conda-requirements.txt -y -q
- pip install -r .ci/requirements.txt
- python setup.py bdist_wheel
- ls dist
- pip install --pre --no-index --find-links dist/ word2vec
test_script:
# Test: Download test data
- ps: mkdir $HOME/data
- ps: wget http://mattmahoney.net/dc/text8.zip -OutFile $HOME/data/text8.zip
# TODO: Fix Download and head of data
# - 7z e -o %HOMEPATH%\data %HOMEPATH%\data\text8.zip
# - Get-Content text8 -TotalCount 1MB > text
# Test: py.test
# - py.test -s -vv --pyarg word2vec # Test currently fail on windows
on_success:
- cd dist
- if not defined APPVEYOR_PULL_REQUEST_NUMBER (
echo "Uploading Wheel" &&
aws s3 cp . s3://danielfrg-ci/word2vec/ --recursive --exclude * --include *.whl
) else (
echo "Pull Request -> No upload"
)