-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
36 lines (34 loc) · 947 Bytes
/
.gitlab-ci.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
include:
- project: 'beckerlab/ci-templates'
ref: 'master'
file: 'containers.yml'
build_image:
stage: build
extends: .build_image
parallel:
matrix:
- REGISTRY:
- gitlab.lrz.de:5005
variables:
IMAGE_TAG: $REGISTRY/beckerlab/gwas-nf
rules:
- changes:
- Dockerfile
- environment.yml
run_pipeline:
stage: test
tags:
- podman
parallel:
matrix:
- PARAMS: ["","--multitrait"]
before_script:
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
#install nextflow
- curl -s https://get.nextflow.io| bash
script:
- ./nextflow run $CI_PROJECT_DIR --genotype "$CI_PROJECT_DIR/assets/genotypes/regmap.hdf5" --phenotype "$CI_PROJECT_DIR/assets/phenotypes/*_mean.csv" $PARAMS -profile test -with-podman $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
artifacts:
paths:
- results/execution_report.html
- results/plots/**/*.png