Skip to content

Commit

Permalink
make dyn-test
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Oct 30, 2024
1 parent cb5c306 commit 2b8fdc6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ pkg-test: compile #-all
echo "$(TEST_URI)"
$(NF_BIN) run ./main.nf -profile standard -plugins $(PROJECT) --outdir "$(TEST_URI)"

dyn-test: compile #-all
$(NF_BIN) run ./main.dynamic.nf -profile standard -plugins $(PROJECT)

s3-overlay: compile
$(NF_BIN) run ./main.nf --plugins $(PROJECT) --outdir "$(S3_BASE)/s3-overlay" --input "$(S3_BASE)/s3-in"

Expand Down
32 changes: 32 additions & 0 deletions main.dynamic.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env nextflow
/* groovylint-disable CompileStatic */

nextflow.enable.dsl = 2
params.hash = 'c4e44f6932f13f626b8640d54fa235c1bfea675f1ad3b5b022a99b3aeb18c637'
params.input = "quilt+s3://udp-spec#package=nf-quilt/source@${params.hash}"

packageFiles = Channel.fromPath(params.input)

process transfer {
publishDir(
path: 'quilt+s3://udp-spec#package=nf-quilt/dynamic',
mode: 'copy',
)
container 'ubuntu:20.04'

input:
path x

output:
path 'inputs/**'

"""
mkdir -p data
cp -r $x inputs/
echo inputs/$x
"""
}

workflow {
packageFiles | transfer | view { file -> file }
}

0 comments on commit 2b8fdc6

Please sign in to comment.