forked from AIM-Harvard/pyradiomics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
74 lines (58 loc) · 2.05 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
67
68
69
70
71
72
73
74
version: "0.0.1.{build}"
environment:
matrix:
# Visual Studio (Python 2 & 3, 64 bit)
- PYTHON_DIR: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_SHORT_VERSION: "2.7"
PYTHON_ARCH: "64"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python34-x64"
PYTHON_VERSION: "3.4.x"
PYTHON_SHORT_VERSION: "3.4"
PYTHON_ARCH: "64"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x"
PYTHON_SHORT_VERSION: "3.5"
PYTHON_ARCH: "64"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_SHORT_VERSION: "3.6"
PYTHON_ARCH: "64"
BLOCK: "0"
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- python -m pip install scikit-ci==0.13.0 scikit-ci-addons==0.11.0
- python -m ci_addons --install ../addons
- python -m pip install twine
- ps: ../addons/appveyor/rolling-build.ps1
install:
- python -m ci install
build_script:
- python -m ci build
test_script:
- python -m ci test
after_test:
- python -m ci after_test
artifacts:
- path: dist/*
name: pypiartefacts
on_finish:
- ps: ../addons/appveyor/enable-worker-remote-access.ps1 -check_for_block
deploy_script:
- echo checking deployment
- ps: if ($env:APPVEYOR_REPO_NAME -notmatch 'Radiomics/pyradiomics') { appveyor exit }
- ps: if ($env:APPVEYOR_REPO_TAG_NAME -notmatch '^v?[0-9]+(\.[0-9]+)*(rc\d+)?$') { appveyor exit }
- echo starting PyPi deployment
- twine upload dist/*.whl -u %PYPI_USER% -p %PYPI_PASSWORD%
- echo starting Anaconda deployment
- SET MINICONDA_PATH=C:\Miniconda3-x64\Scripts
- IF /I "%PYTHON_SHORT_VERSION%"=="2.7" SET MINICONDA_PATH=C:\Miniconda-x64\Scripts
- SET PATH=%MINICONDA_PATH%;%PATH%
- ./conda/configure_conda.bat && conda build ./conda --python=%PYTHON_SHORT_VERSION% --croot C:/conda-bld
- anaconda -t %ANACONDA_TOKEN% upload -u Radiomics C:/conda-bld/win-64/pyradiomics-*.tar.bz2 --force
- echo finished deployment
matrix:
fast_finish: false