-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
87 lines (69 loc) · 3.09 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
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "{build}"
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\tools\\appveyor\\run_with_env.cmd"
BLPAPI_VERSION: "3.9.0"
BLPAPI_CPP_VERSION: "3.10.7.1"
PKG_DIR: "blpapi"
BUILD_DIR: "build"
CONDA_USER: "macinv"
CONDA_PASSWORD:
secure: 5ilfeQrsL5WVE5qK3HmUKUI4QkezEX2HmK38geBwMz0=
matrix:
- PYTHON: "C:\\Miniconda-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Miniconda3-x64"
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Miniconda35-x64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
platform:
- x64
init:
- ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH% %HOME% %BLPAPI_VERSION% %BLPAPI_CPP_VERSION%
install:
# https://www.appveyor.com/docs/installed-software#python
- if "%PYTHON_VERSION%" == "3.4" set "BASE_PYTHON_VERSION=3"
- if "%PYTHON_VERSION%" == "3.5" set "BASE_PYTHON_VERSION=35"
- if "%PYTHON_VERSION%" == "3.6" set "BASE_PYTHON_VERSION=36"
- if "%PYTHON_ARCH%" == "64" set "ARCH_LABEL=-x64"
# These are already installed on appveyor. Update them.
- set "CONDA_ROOT=C:\Miniconda%BASE_PYTHON_VERSION%%ARCH_LABEL%"
- set "PATH=%CONDA_ROOT%;%CONDA_ROOT%\Scripts;%CONDA_ROOT%\Library\bin;%PATH%"
- python -c "import sys; print(sys.version)"
- python -c "import sys; print(sys.executable)"
- python -c "import sys; print(sys.prefix)"
- python --version
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install conda-build
- conda install anaconda-client
- conda build --version
# needed for python2.7 x64
- if "%PYTHON_VERSION%" == "2.7" conda install -c conda-forge -n root --yes --quiet vs2008_express_vc_python_patch
- if "%PYTHON_VERSION%" == "2.7" call setup_x64.bat
- if "%PYTHON_VERSION%" == "2.7" copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat"
build_script:
# download the official packages
- appveyor DownloadFile https://bloomberg.bintray.com/BLPAPI-Experimental-Generic/blpapi_python_%BLPAPI_VERSION%.zip
- appveyor DownloadFile https://bloomberg.bintray.com/BLPAPI-Experimental-Generic/blpapi_cpp_%BLPAPI_CPP_VERSION%-windows.zip
- bash prepare_win_package.sh
- conda build %PKG_DIR% --output-folder %BUILD_DIR%
artifacts:
- path: '%BUILD_DIR%\win-64\*.tar.bz2'
deploy_script:
- if "%APPVEYOR_REPO_BRANCH%" == "master" anaconda login --user %CONDA_USER% --password %CONDA_PASSWORD%
- if "%APPVEYOR_REPO_BRANCH%" == "master" anaconda upload --force %BUILD_DIR%\win-64\*.tar.bz2
- if "%APPVEYOR_REPO_BRANCH%" == "master" anaconda logout
notifications:
- provider: Slack
incoming_webhook:
secure: dfhCEz7Z435cnbDSt4QsHhT7L4oK03Nm+oUnz5JmSJ+Zc5oTTbLA6CSAadFyYuNA6QRKXKd2j74+9qekDzsTuGCpGVrlvwtLI6NZor8Tsew=