-
Notifications
You must be signed in to change notification settings - Fork 23
/
appveyor.yml
41 lines (35 loc) · 1.92 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
# Do not build on tags (GitHub only)
skip_tags: true
clone_depth: 1
os: Visual Studio 2015
matrix:
fast_finish: true # immediately finish build once one of the jobs fails.
environment:
global:
appveyor_token:
secure: GvR4dCHoeYM712VDQYvSuNzFu+rZfo/zdns7xGlFPGOKfFvBmVCXTX6iuHmMpUeP
matrix:
- PYTHON_ARCH: "x86_64"
- PYTHON_ARCH: "x86"
build_script:
- ps: Start-FileDownload "https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-$env:PYTHON_ARCH.exe" C:\Miniconda.exe; echo "Finished downloading miniconda"
- cmd: C:\Miniconda.exe /S /D=C:\Py
- SET PATH=C:\Py;C:\Py\Scripts;C:\Py\Library\bin;%PATH%
- conda config --set always_yes yes
- conda update conda
- conda update conda-env
- conda install conda-build
- ps: if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { conda install anaconda-client }
- conda build conda\ndt.recipe --channel dynd/channel/dev --channel dynd/channel/ci
- rd /q /s build dynd.ndt.egg-info
- conda build conda\nd.recipe --channel dynd/channel/dev --channel dynd/channel/ci
on_success:
# Redirect output from stderr to stdout to avoid having the command for uploading
# the conda package fail in powershell in spite of a successful upload.
# This happens when an executable writes to stderr while still executing successfully.
# See http://stackoverflow.com/a/22615314/1935144
# See also http://stackoverflow.com/a/2095623/1935144
# Route command back through cmd to avoid the powershell bug entirely.
# See https://connect.microsoft.com/PowerShell/feedback/details/645954
- ps: if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { cmd /C anaconda --token $env:appveyor_token upload (conda build --output conda\ndt.recipe | select -Last 1) --user dynd --channel dev "2>&1" }
- ps: if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { cmd /C anaconda --token $env:appveyor_token upload (conda build --output conda\nd.recipe | select -Last 1) --user dynd --channel dev "2>&1" }