forked from DmitryUlyanov/Multicore-TSNE
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
49 lines (39 loc) · 1.36 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
shallow_clone: true
clone_depth: 2
skip_tags: false
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false
environment:
fast_finish: true
matrix:
- PYTHON: C:\Python36
WHEEL_PLATFORM: win32
- PYTHON: C:\Python36-x64
EXTRA_CMAKE_ARGS: -DCMAKE_GENERATOR_PLATFORM=x64
WHEEL_PLATFORM: win_amd64
TWINE_USERNAME: placeholder
TWINE_PASSWORD: secret
install:
# Install dependencies
- set "PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%"
- python -m pip install -U pip setuptools wheel
- python -m pip install --only-binary=all --pre scipy scikit-learn
# Build and install from wheel so we see this works
- python setup.py -v build_ext --cmake-args=%EXTRA_CMAKE_ARGS% bdist_wheel
# Rename the wheel to contain PEP-425 platform tags
- ps: mv dist\*.whl dist\MulticoreTSNE-$(python -c 'from setup import VERSION; print(VERSION)')-py2.py3-none-$env:WHEEL_PLATFORM.whl
- FOR /F %%a IN ('dir /b dist\\*.whl') DO (SET "wheel=dist\\%%a")
- python -m pip install %wheel%
- python -m pip install -U --no-deps %wheel%
build: off
test_script:
- pushd .. & python -m unittest discover -v MulticoreTSNE & popd
artifacts:
- path: 'dist\*.whl'
name: wheel
on_success:
- python -m pip install twine
- if "%APPVEYOR_REPO_TAG%"=="true" python -m twine upload --skip-existing %wheel%