From 57ff953621b612fece32dd3a5038ec3f906f0ef1 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Thu, 29 Apr 2021 16:04:48 +0100 Subject: [PATCH] mac docker --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eaf223c..5d4c522 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,3 +10,27 @@ variables: # (not things such as -profile) NF_WORKFLOW_OPTS: "--fastq test_data" + +macos-run: + stage: test + script: + - docker run hello-world + - wget -qO- https://get.nextflow.io | bash + # pull back the image + - echo ${CI_BUILD_TOKEN} | docker login --username gitlab-ci-token --password-stdin ${CI_REGISTRY} + - docker pull ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA} + # run the workflow + # custom scripting + - echo "Running workflow specific script" + - echo "Running:'${NF_BEFORE_SCRIPT}'" + - eval ${NF_BEFORE_SCRIPT} + # left for invididual project to control ${NF_WORKFLOW_OPTS} + - CMD="./nextflow ${NF_RUN_OPTS_TAG_TEST} -profile standard ${NF_OUTPUT_OPTS} ${NF_WORKFLOW_OPTS}" + - echo "Running:'${CMD}'" + - ${CMD} + needs: + - ["docker-run"] + only: + - "/^dev$/" + except: + - tags