-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathazure-pipelines-osx.yml
More file actions
executable file
·75 lines (63 loc) · 2.09 KB
/
azure-pipelines-osx.yml
File metadata and controls
executable file
·75 lines (63 loc) · 2.09 KB
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
# This file was generated automatically from conda-smithy. To update this configuration,
# update the conda-forge.yml and/or the recipe/meta.yaml.
# -*- mode: yaml -*-
jobs:
- job: osx
pool:
vmImage: macOS-10.14
timeoutInMinutes: 360
strategy:
maxParallel: 8
matrix:
osx_:
CONFIG: osx_
UPLOAD_PACKAGES: True
steps:
# TODO: Fast finish on azure pipelines?
- script: |
echo "Fast Finish"
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to PATH
- script: |
source activate base
conda install -n base -c conda-forge --quiet --yes conda-forge-ci-setup=2 conda-build
displayName: 'Add conda-forge-ci-setup=2'
- script: |
echo "Mangling homebrew from Azure to avoid conflicts."
source activate base
/usr/bin/sudo mangle_homebrew
/usr/bin/sudo -k
displayName: Mangle homebrew
- script: |
source activate base
echo "Configuring conda."
setup_conda_rc ./ "./recipe" ./.ci_support/${CONFIG}.yaml
export CI=azure
source run_conda_forge_build_setup
conda update --yes --quiet --override-channels -c conda-forge -c defaults --all
env: {
OSX_FORCE_SDK_DOWNLOAD: "1"
}
displayName: Configure conda and conda-build
- script: |
source activate base
mangle_compiler ./ "./recipe" ./.ci_support/${CONFIG}.yaml
displayName: Mangle compiler
- script: |
source activate base
make_build_number ./ "./recipe" ./.ci_support/${CONFIG}.yaml
displayName: Generate build number clobber file
- script: |
source activate base
conda build "./recipe" -m ./.ci_support/${CONFIG}.yaml --clobber-file ./.ci_support/clobber_${CONFIG}.yaml
displayName: Build recipe
- script: |
source activate base
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
upload_package ./ "./recipe" ./.ci_support/${CONFIG}.yaml
displayName: Upload package
env:
BINSTAR_TOKEN: $(BINSTAR_TOKEN)
condition: and(succeeded(), not(eq(variables['UPLOAD_PACKAGES'], 'False')))