@@ -5,7 +5,7 @@ variables:
5
5
# default settings for all steps
6
6
defaults : &defaults
7
7
docker :
8
- - image : ubuntu:20.04
8
+ - image : ubuntu:latest
9
9
10
10
# --------------------------------------------------------------------------
11
11
# The caching dramatically speeds up testing time, because we can do the
@@ -28,7 +28,7 @@ variables:
28
28
save_cache :
29
29
key : v5-{{ checksum "env.yml" }}-{{ checksum "env-r.yml" }}
30
30
paths :
31
- - /opt/mambaforge
31
+ - /opt/miniforge
32
32
33
33
# this file is created by sra-tools upon installation by conda, and so
34
34
# needs to be included in the cache otherwise fastq-dump thinks it's
@@ -48,6 +48,7 @@ variables:
48
48
name : Set path
49
49
command : |
50
50
# x11-utils required to avoid R::png() segfaulting
51
+ export DEBIAN_FRONTEND=noninteractive
51
52
apt update && apt install -y \
52
53
curl \
53
54
git \
@@ -73,7 +74,7 @@ variables:
73
74
74
75
# Note that if we don't escape \$PATH, we'll be stuck with the exact
75
76
# PATH defined here, which will break anything needing conda envs.
76
- echo "export PATH=\$PATH:/opt/mambaforge /bin" >> $BASH_ENV
77
+ echo "export PATH=\$PATH:/opt/miniforge /bin" >> $BASH_ENV
77
78
source $BASH_ENV
78
79
79
80
@@ -85,28 +86,16 @@ variables:
85
86
command : |
86
87
source $BASH_ENV
87
88
echo $PATH
88
- # /opt/mambaforge will only exist if there was a cache restore; otherwise we'll make it here.
89
+ # /opt/miniforge will only exist if there was a cache restore; otherwise we'll make it here.
89
90
#
90
- # Use mambaforge which comes with mamba.
91
- if [ ! -e /opt/mambaforge ]; then
92
- curl -L https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh > mambaforge.sh
93
- bash mambaforge.sh -b -p /opt/mambaforge
94
- source "/opt/mambaforge/etc/profile.d/conda.sh"
95
- source "/opt/mambaforge/etc/profile.d/mamba.sh"
91
+ if [ ! -e /opt/miniforge ]; then
92
+ curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
93
+ bash Miniforge3-$(uname)-$(uname -m).sh -b -p /opt/miniforge
94
+ source "/opt/miniforge/etc/profile.d/conda.sh"
96
95
conda activate
97
96
98
97
which conda
99
- which mamba
100
- mamba --version
101
-
102
- # Note that mambaforge doesn't come with the defaults channel, but
103
- # we're adding it here at the beginning to simulate what most users
104
- # probably have locally (and following the bioconda docs). Using
105
- # strict channel priority means we should [theoretically] never
106
- # pull packages from defaults because they all exist on
107
- # conda-forge.
108
- conda config --system --add channels defaults
109
-
98
+ conda --version
110
99
conda config --system --add channels bioconda
111
100
conda config --system --add channels conda-forge
112
101
conda config --system --set channel_priority strict
@@ -115,10 +104,10 @@ variables:
115
104
# https://docs.conda.io/projects/conda-build/en/latest/resources/link-scripts.html,
116
105
# post-link scripts should not depend on any installed or
117
106
# to-be-installed conda packages...but they do.
118
- mamba install -n base r-base yq
107
+ conda install -n base r-base yq
119
108
120
- time mamba env create -n $LCDBWF_ENV --file env.yml
121
- time mamba env create -n $LCDBWF_ENV_R --file env-r.yml
109
+ time conda env create -n $LCDBWF_ENV --file env.yml
110
+ time conda env create -n $LCDBWF_ENV_R --file env-r.yml
122
111
fi
123
112
124
113
# --------------------------------------------------------------------------
@@ -127,7 +116,7 @@ variables:
127
116
run :
128
117
name : Download example data
129
118
command : |
130
- source /opt/mambaforge /etc/profile.d/conda.sh
119
+ source /opt/miniforge /etc/profile.d/conda.sh
131
120
conda activate $LCDBWF_ENV
132
121
conda info --envs
133
122
conda config --show
@@ -151,7 +140,7 @@ variables:
151
140
cp $ORIG/workflows/rnaseq/run_test.sh $DEPLOY/workflows/rnaseq/run_test.sh
152
141
cp $ORIG/workflows/rnaseq/run_downstream_test.sh $DEPLOY/workflows/rnaseq/run_downstream_test.sh
153
142
cp $ORIG/workflows/references/run_test.sh $DEPLOY/workflows/references/run_test.sh
154
- cp $ORIG/workflows/colocalization/run_test.sh $DEPLOY/workflows/colocalization/run_test.sh
143
+ # cp $ORIG/workflows/colocalization/run_test.sh $DEPLOY/workflows/colocalization/run_test.sh
155
144
156
145
mkdir $DEPLOY/ci
157
146
mkdir $DEPLOY/test
@@ -172,7 +161,7 @@ variables:
172
161
run :
173
162
name : Run pytest suite and testthat suite
174
163
command : |
175
- source /opt/mambaforge /etc/profile.d/conda.sh
164
+ source /opt/miniforge /etc/profile.d/conda.sh
176
165
conda activate $LCDBWF_ENV
177
166
# run unit tests and doctests for the modules in lib
178
167
test/lcdb-wf-test unit_tests --pytest
@@ -194,9 +183,9 @@ variables:
194
183
name : chipseq workflow
195
184
command : |
196
185
cd $DEPLOY/workflows/chipseq
197
- source /opt/mambaforge /etc/profile.d/conda.sh
186
+ source /opt/miniforge /etc/profile.d/conda.sh
198
187
conda activate $LCDBWF_ENV
199
- $DEPLOY/test/lcdb-wf-test chipseq --run-workflow --use-conda -j2 -k -p -r
188
+ $DEPLOY/test/lcdb-wf-test chipseq --run-workflow --use-conda -j2 -k -p
200
189
$DEPLOY/test/lcdb-wf-test chipseq --trackhub
201
190
202
191
# --------------------------------------------------------------------------
@@ -208,10 +197,10 @@ variables:
208
197
name : chipseq misc
209
198
command : |
210
199
cd $DEPLOY/workflows/chipseq
211
- source /opt/mambaforge /etc/profile.d/conda.sh
200
+ source /opt/miniforge /etc/profile.d/conda.sh
212
201
conda activate $LCDBWF_ENV
213
202
214
- ./run_test.sh --use-conda -j2 -k -p -r \
203
+ ./run_test.sh --use-conda -j2 -k -p \
215
204
--configfile $ORIG/test/test_configs/test_chipseq_regression.yaml \
216
205
--config sampletable=$ORIG/test/test_configs/chipseq_one_run.tsv \
217
206
merged_bigwigs="{}" \
@@ -237,9 +226,9 @@ variables:
237
226
run :
238
227
name : references workflow
239
228
command : |
240
- source /opt/mambaforge /etc/profile.d/conda.sh
229
+ source /opt/miniforge /etc/profile.d/conda.sh
241
230
conda activate $LCDBWF_ENV
242
- $DEPLOY/test/lcdb-wf-test references --run-workflow --configfile=config/config.yaml -j2 -p -r - k --orig $ORIG
231
+ $DEPLOY/test/lcdb-wf-test references --run-workflow --configfile=config/config.yaml -j2 -p -k --orig $ORIG
243
232
244
233
# --------------------------------------------------------------------------
245
234
# Standard RNA-seq workflow
@@ -248,10 +237,10 @@ variables:
248
237
name : rnaseq workflow
249
238
command : |
250
239
cd $DEPLOY
251
- source /opt/mambaforge /etc/profile.d/conda.sh
240
+ source /opt/miniforge /etc/profile.d/conda.sh
252
241
conda activate $LCDBWF_ENV
253
242
$DEPLOY/test/lcdb-wf-test rnaseq --run-workflow -n
254
- $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --use-conda -j2 -k -p -r - -orig $ORIG
243
+ $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --use-conda -j2 -k -p --orig $ORIG
255
244
256
245
$DEPLOY/test/lcdb-wf-test rnaseq --trackhub --orig $ORIG
257
246
@@ -276,32 +265,32 @@ variables:
276
265
command : |
277
266
ORIG=$(pwd)
278
267
cd $DEPLOY
279
- source /opt/mambaforge /etc/profile.d/conda.sh
268
+ source /opt/miniforge /etc/profile.d/conda.sh
280
269
conda activate $LCDBWF_ENV
281
270
282
271
# Check the help for test/lcdb-wf-test to see what args these
283
272
# provide; some of them use the --until argument to restrict the
284
273
# rules that are run. Note the use of --orig $ORIG to use the test
285
274
# configs from the original clone rather than the deployed directory.
286
- $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --sra-pe -k -r - p -j2 --use-conda --orig $ORIG
287
- $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --sra-se -k -r - p -j2 --use-conda --orig $ORIG
288
- $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --strandedness-pe -k -r - p -j2 --use-conda --orig $ORIG
289
- $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --star-2pass -k -r - p -j2 --use-conda --orig $ORIG
290
- $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --star-1pass -k -r - p -j2 --use-conda --orig $ORIG
291
- $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --pe -k -r - p -j2 --use-conda --orig $ORIG
275
+ $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --sra-pe -k -p -j2 --use-conda --orig $ORIG
276
+ $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --sra-se -k -p -j2 --use-conda --orig $ORIG
277
+ $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --strandedness-pe -k -p -j2 --use-conda --orig $ORIG
278
+ $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --star-2pass -k -p -j2 --use-conda --orig $ORIG
279
+ $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --star-1pass -k -p -j2 --use-conda --orig $ORIG
280
+ $DEPLOY/test/lcdb-wf-test rnaseq --run-workflow --pe -k -p -j2 --use-conda --orig $ORIG
292
281
293
282
294
283
295
284
# --------------------------------------------------------------------------
296
285
# Standard colocalization workflow
297
- colocalization-step : &colocalization-step
298
- run :
299
- name : colocalization workflow
300
- command : |
301
- cd $DEPLOY/workflows/colocalization
302
- source /opt/mambaforge /etc/profile.d/conda.sh
303
- conda activate $LCDBWF_ENV
304
- $DEPLOY/test/lcdb-wf-test colocalization --run-workflow -k -r -p -j2 --use-conda --orig $ORIG
286
+ # colocalization-step: &colocalization-step
287
+ # run:
288
+ # name: colocalization workflow
289
+ # command: |
290
+ # cd $DEPLOY/workflows/colocalization
291
+ # source /opt/miniforge /etc/profile.d/conda.sh
292
+ # conda activate $LCDBWF_ENV
293
+ # $DEPLOY/test/lcdb-wf-test colocalization --run-workflow -k -p -j2 --use-conda --orig $ORIG
305
294
306
295
# --------------------------------------------------------------------------
307
296
# Syntax note: All of the steps above, with their "&step-name" labels, can be
@@ -410,14 +399,14 @@ jobs:
410
399
- *get-data
411
400
- *rnaseq-misc-step
412
401
413
- colocalization :
414
- << : *defaults
415
- steps :
416
- - checkout
417
- - *restore_cache
418
- - *set-path
419
- - *get-data
420
- - *colocalization-step
402
+ # colocalization:
403
+ # <<: *defaults
404
+ # steps:
405
+ # - checkout
406
+ # - *restore_cache
407
+ # - *set-path
408
+ # - *get-data
409
+ # - *colocalization-step
421
410
422
411
references :
423
412
<< : *defaults
@@ -438,9 +427,9 @@ jobs:
438
427
- run :
439
428
name : Install sphinx
440
429
command : |
441
- source /opt/mambaforge /etc/profile.d/conda.sh
430
+ source /opt/miniforge /etc/profile.d/conda.sh
442
431
conda activate lcdb-wf-test
443
- mamba install -y sphinx make yaml
432
+ conda install -y sphinx make yaml
444
433
- run :
445
434
name : OK for unknown github host
446
435
command : mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
@@ -450,7 +439,7 @@ jobs:
450
439
- run :
451
440
name : Build and upload docs
452
441
command : |
453
- source /opt/mambaforge /etc/profile.d/conda.sh
442
+ source /opt/miniforge /etc/profile.d/conda.sh
454
443
conda activate lcdb-wf-test
455
444
ci/build-docs.sh
456
445
- store_artifacts :
@@ -466,7 +455,7 @@ jobs:
466
455
- run :
467
456
name : Report environment
468
457
command : |
469
- source /opt/mambaforge /etc/profile.d/conda.sh
458
+ source /opt/miniforge /etc/profile.d/conda.sh
470
459
conda env export -n lcdb-wf-test > /tmp/env.yaml
471
460
conda env export -n lcdb-wf-test-r > /tmp/env-r.yaml
472
461
- store_artifacts :
@@ -504,10 +493,10 @@ workflows:
504
493
requires :
505
494
- initial-setup
506
495
- pytest
507
- - colocalization :
508
- requires :
509
- - initial-setup
510
- - pytest
496
+ # - colocalization:
497
+ # requires:
498
+ # - initial-setup
499
+ # - pytest
511
500
- build-docs :
512
501
requires :
513
502
- initial-setup
@@ -518,4 +507,4 @@ workflows:
518
507
- chipseq
519
508
- chipseq-misc
520
509
- references
521
- - colocalization
510
+ # - colocalization
0 commit comments