From fd9b9445e5c99611c69d0cc909fe7ecc76066f52 Mon Sep 17 00:00:00 2001 From: Mauricio DIAZ Date: Wed, 6 Mar 2019 15:12:06 +0100 Subject: [PATCH] Fix CI script in master branch (pre-release) Former-commit-id: d8e3e5a35d3aefbc2059b0fd0d8f7d172f0985a7 --- .gitlab-ci.yml | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c266ad1bc..d82fa0b06 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -113,7 +113,6 @@ test:instantiate:mac: - pytest --verbose -k 'test_instantiate' - module purge - source deactivate - test:instantiate:linux: stage: test @@ -134,6 +133,44 @@ test:instantiate:linux: - module purge - source deactivate +test:run:mac: + stage: test + tags: + - macOS + only: + - schedules + script: + - source activate $CLINICA_ENV_BRANCH_CLEAN + - module load clinica.all + - cd test + - ln -s /Volumes/data/data_ci ./data + - pytest --verbose + --working_directory=/Volumes/data/working_directory_ci_mac + -k 'test_run' + - module purge + - source deactivate + +test:run:linux: + stage: test + tags: + - linux + only: + - schedules + script: + - source activate $CLINICA_ENV_BRANCH_CLEAN + - export PATH="/home/gitlab-runner/dcm2nii":${PATH} + - module load clinica.all + - cd test + - ln -s /localdrive10TB/data/ci/data_ci_upgrade ./data + - taskset -c 0-21 pytest + --verbose + --working_directory=/localdrive10TB/data/working_directory_ci_linux + --disable-warnings + --timeout=0 + -n 6 + -k 'test_run' + - module purge + - source deactivate pkg: stage: package