Skip to content
Snippets Groups Projects
Commit d5cbadf9 authored by Alex Kanitz's avatar Alex Kanitz
Browse files

final

parent 1dbf6502
No related branches found
No related tags found
1 merge request!5ci: add GitLab CI config
Pipeline #14461 failed
......@@ -4,14 +4,18 @@ default:
test:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
script:
- docker build -t testimage:latest .
- docker run --rm -it testimage:latest tests/test.sh
test_and_publish:
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
script:
- export VERSION=$(grep 'version <-' ascii_alignment_pileup.R | cut -f2 -d'"')
- export IMAGE="${DOCKER_ORG}/${DOCKER_REPO}:${VERSION}"
......@@ -23,4 +27,3 @@ test_and_publish:
- docker run --rm -it $IMAGE tests/test.sh
- echo "${DOCKER_TOKEN}" | docker login -u "${DOCKER_USER}" --password-stdin
- docker push $IMAGE
......@@ -29,7 +29,7 @@ against one or more regions specified in a BED file.\n"
author <- "Author: Alexander Kanitz"
affiliation <- "Affiliation: Biozentrum, University of Basel"
email <- "Email: alexander.kanitz@alumni.ethz.ch"
version <- "1.0.3"
version <- "1.1.0"
version_formatted <- paste("Version:", version, sep=" ")
requirements <- c("optparse", "rtracklayer", "GenomicAlignments", "tools")
requirements_txt <- paste("Requires:", paste(requirements, collapse=", "), sep=" ")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment