mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-22 08:29:54 +00:00
declate NXF_GLOBAL_CONFIG in ci
This commit is contained in:
parent
2685275952
commit
66f191a1cf
2 changed files with 7 additions and 5 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -23,7 +23,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
wget -qO- get.nextflow.io | bash
|
wget -qO- get.nextflow.io | bash
|
||||||
sudo mv nextflow /usr/local/bin/
|
sudo mv nextflow /usr/local/bin/
|
||||||
|
touch /usr/local/bin/test.config
|
||||||
- name: Check ${{ matrix.profile }} profile
|
- name: Check ${{ matrix.profile }} profile
|
||||||
env:
|
env:
|
||||||
SCRATCH: '~'
|
SCRATCH: '~'
|
||||||
|
NXF_GLOBAL_CONFIG: /usr/local/bin/test.config
|
||||||
run: nextflow run ${GITHUB_WORKSPACE}/configtest.nf --custom_config_base=${GITHUB_WORKSPACE} -profile ${{ matrix.profile }}
|
run: nextflow run ${GITHUB_WORKSPACE}/configtest.nf --custom_config_base=${GITHUB_WORKSPACE} -profile ${{ matrix.profile }}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
params.globalConfig = determine_global_config()
|
params.globalConfig = determine_global_config()
|
||||||
|
|
||||||
// includeConfig params.globalConfig
|
includeConfig params.globalConfig
|
||||||
|
|
||||||
def determine_global_config() {
|
def determine_global_config() {
|
||||||
// if( System.getenv('NXF_GLOBAL_CONFIG') == null)
|
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")
|
throw new Exception("Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file")
|
||||||
// }
|
}
|
||||||
return System.getenv('NXF_GLOBAL_CONFIG')
|
return System.getenv('NXF_GLOBAL_CONFIG')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue