forked from bioconda/bioconda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipeline-master.yml
99 lines (79 loc) · 2.85 KB
/
azure-pipeline-master.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
88
89
90
91
92
93
94
95
96
97
98
99
# Disable Azure checks in favor of GitHub Actions due to memory issues
pr: none
trigger: none
# trigger:
# - master
jobs:
- job: "build_and_push_linux"
pool:
vmImage: "ubuntu-latest"
strategy:
maxParallel: 8
timeoutInMinutes: 360
steps:
- script: |
git checkout master
- bash: echo "##vso[task.prependpath]/opt/mambaforge/bin"
displayName: Add conda to PATH
- bash: |
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/{common,install-and-set-up-conda,configure-conda}.sh
displayName: Fetch bioconda install script
- script: bash install-and-set-up-conda.sh
displayName: Install bioconda-utils
# We reconfigure conda to use the right channel setup.
- script: bash configure-conda.sh
displayName: Configure conda
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate bioconda
export OSTYPE="linux-gnu"
export CI="true"
bioconda-utils handle-merged-pr recipes config.yml \
--repo bioconda/bioconda-recipes \
--git-range $(Build.SourceVersion)~1 $(Build.SourceVersion) \
--quay-upload-target biocontainers
env:
QUAY_LOGIN: $(QUAY_LOGIN)
QUAY_OAUTH_TOKEN: $(QUAY_OAUTH_TOKEN)
ANACONDA_TOKEN: $(ANACONDA_TOKEN)
INVOLUCRO_AUTH: $(INVOLUCRO_AUTH)
GITHUB_TOKEN: $(GITHUB_TOKEN)
displayName: Handle merged PR
- job: "build_and_push_osx"
pool:
vmImage: "macOS-latest"
strategy:
maxParallel: 4
timeoutInMinutes: 360
steps:
- script: |
git checkout master
- bash: echo "##vso[task.prependpath]/opt/mambaforge/bin"
displayName: Add conda to PATH
- bash: |
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/{common,install-and-set-up-conda,configure-conda}.sh
displayName: Fetch bioconda install script
- script: bash install-and-set-up-conda.sh
displayName: Install bioconda-utils
# We reconfigure conda to use the right channel setup.
- script: bash configure-conda.sh
displayName: Configure conda
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate bioconda
export OSTYPE="darwin"
export CI="true"
# Get MACOSX vars
source common.sh
bioconda-utils handle-merged-pr recipes config.yml \
--repo bioconda/bioconda-recipes \
--git-range $(Build.SourceVersion)~1 $(Build.SourceVersion) \
--fallback build
env:
QUAY_LOGIN: $(QUAY_LOGIN)
ANACONDA_TOKEN: $(ANACONDA_TOKEN)
INVOLUCRO_AUTH: $(INVOLUCRO_AUTH)
GITHUB_TOKEN: $(GITHUB_TOKEN)
displayName: Handle merged PR