forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-win.yml
executable file
·61 lines (51 loc) · 1.98 KB
/
azure-pipelines-win.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
jobs:
- job: win_64
pool:
vmImage: vs2017-win2016
strategy:
maxParallel: 4
matrix:
win:
CONFIG: win64
CF_MAX_PY_VER: 37
timeoutInMinutes: 360
steps:
- task: CondaEnvironment@1
inputs:
packageSpecs: 'python=3.6 conda-build>=3.18 conda>4.7.12 conda-forge::conda-forge-ci-setup=3 networkx=2.3 conda-forge-pinning' # Optional
installOptions: "-c conda-forge"
updateConda: true
displayName: Install conda-build and activate environment
- script: set PYTHONUNBUFFERED=1
# Add our channels.
- script: conda.exe config --set show_channel_urls true
displayName: configure conda channels
- script: conda.exe config --remove channels defaults
displayName: configure conda channels
- script: conda.exe config --add channels defaults
displayName: configure conda channels
- script: conda.exe config --add channels conda-forge
displayName: configure conda channels
# Configure the VM
- script: setup_conda_rc .\ .\recipes .\.ci_support\%CONFIG%.yaml
# Configure the VM.
- script: call run_conda_forge_build_setup
displayName: conda-forge build setup
# Find the recipes from master in this PR and remove them.
- script: |
git fetch --force origin master:master
cd recipes
for /f "tokens=*" %%a in ('git ls-tree --name-only master -- .') do rmdir /s /q %%a && echo Removing recipe: %%a
cd ..
- script: |
REM make sure there is a package directory so that artifact publishing works
setlocal enableextensions
if not exist C:\\Miniconda\\conda-bld\\win-64\\ mkdir C:\\Miniconda\\conda-bld\\win-64\\
displayName: Make artifact dir
# Special cased version setting some more things!
- script: |
git fetch --force origin master:master
python .ci_support\build_all.py --arch 64
displayName: Build recipe
- publish: C:\\Miniconda\\conda-bld\\win-64\\
artifact: conda_pkgs_win