From 66f191a1cfd87ac5b5b728a0ebc73b84b9d469c9 Mon Sep 17 00:00:00 2001 From: Piotr Faba Date: Wed, 27 May 2020 16:30:00 +0200 Subject: [PATCH] declate NXF_GLOBAL_CONFIG in ci --- .github/workflows/main.yml | 2 ++ conf/bi.config | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b927957..8226dac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,9 @@ jobs: run: | wget -qO- get.nextflow.io | bash sudo mv nextflow /usr/local/bin/ + touch /usr/local/bin/test.config - name: Check ${{ matrix.profile }} profile env: SCRATCH: '~' + NXF_GLOBAL_CONFIG: /usr/local/bin/test.config run: nextflow run ${GITHUB_WORKSPACE}/configtest.nf --custom_config_base=${GITHUB_WORKSPACE} -profile ${{ matrix.profile }} diff --git a/conf/bi.config b/conf/bi.config index 6fa20d6..874d9f8 100644 --- a/conf/bi.config +++ b/conf/bi.config @@ -1,11 +1,11 @@ params.globalConfig = determine_global_config() -// includeConfig params.globalConfig +includeConfig params.globalConfig def determine_global_config() { - // if( System.getenv('NXF_GLOBAL_CONFIG') == null) - // { - // throw new Exception("Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file") - // } + if( System.getenv('NXF_GLOBAL_CONFIG') == null) + { + throw new Exception("Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file") + } return System.getenv('NXF_GLOBAL_CONFIG') }