forked from bioconda/bioconda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipeline-nightly.yml
126 lines (107 loc) · 3.27 KB
/
azure-pipeline-nightly.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
schedules:
- cron: "0 0 * * *"
displayName: Nightly uploader
branches:
include:
- master
always: true
pr: none
trigger:
branches:
exclude:
- '*'
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/miniconda/bin"
displayName: Add conda to PATH
- bash: |
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/install-and-set-up-conda.sh
displayName: Fetch bioconda install script
- bash: |
sudo mkdir -p /opt
sudo chown -R $USER /opt
displayName: Ensure cache has path to restore to
- task: Cache@2
inputs:
path: "/opt/miniconda"
key: '"$(Agent.OS)" | **/install-and-set-up-conda.sh'
cacheHitVar: CACHE_RESTORED
displayName: Restore cache
- script: bash install-and-set-up-conda.sh
condition: ne(variables.CACHE_RESTORED, 'true')
displayName: Install bioconda-utils
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate bioconda
conda build --token $ANACONDA_TOKEN --user bioconda --quiet recipes/bioconda-repodata-patches
env:
ANACONDA_TOKEN: $(ANACONDA_TOKEN)
displayName: Rebuild and push the bioconda-repodata-patches package
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate bioconda
docker pull quay.io/dpryan79/mulled_container:latest
export OSTYPE="linux-gnu"
export CI="true"
# build and push all leftover packages
bioconda-utils build recipes config.yml \
--docker --mulled-test --anaconda-upload --mulled-upload-target biocontainers \
--prelint
docker rmi quay.io/dpryan79/mulled_container:latest
env:
QUAY_OAUTH_TOKEN: $(QUAY_OAUTH_TOKEN)
ANACONDA_TOKEN: $(ANACONDA_TOKEN)
INVOLUCRO_AUTH: $(INVOLUCRO_AUTH)
displayName: Build and push leftover packages
- 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/miniconda/bin"
displayName: Add conda to PATH
- bash: |
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/install-and-set-up-conda.sh
displayName: Fetch bioconda install script
- bash: |
sudo mkdir -p /opt
sudo chown -R $USER /opt
displayName: Ensure cache has path to restore to
- task: Cache@2
inputs:
path: "/opt/miniconda"
key: '"$(Agent.OS)" | **/install-and-set-up-conda.sh'
cacheHitVar: CACHE_RESTORED
displayName: Restore cache
- script: bash install-and-set-up-conda.sh
condition: ne(variables.CACHE_RESTORED, 'true')
displayName: Install bioconda-utils
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate bioconda
export OSTYPE="darwin"
export CI="true"
export HOME=`pwd`
bioconda-utils build recipes config.yml \
--anaconda-upload \
--prelint
env:
QUAY_OAUTH_TOKEN: $(QUAY_OAUTH_TOKEN)
ANACONDA_TOKEN: $(ANACONDA_TOKEN)
INVOLUCRO_AUTH: $(INVOLUCRO_AUTH)
displayName: Build and push leftover packages