Commit bffea36f authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud
Browse files

.gitlab-ci.yml: Launch pipelines on merge requests only

Consistency with doc/.gitlab-ci.yml.
Otherwise we have a pipeline on the branch itself and one pipeline on the merge request.

Fix vdj#1020
parent 6720f140
Pipeline #122419 passed with stages
in 45 seconds
before_script:
- make demo
- make data
......@@ -33,12 +32,16 @@ stages:
- algo/lcov_test_*.filtered
expire_in: 1 week
.merge_requests: &mr |
- merge_requests
# Tools
test_tools:
stage: test_tools
script: make -C tools/tests
only:
- *mr
# Germlines
......@@ -48,6 +51,7 @@ test_germlines:
- make -C germline get-all-data
- make -C germline tests
only:
- *mr
- /^feature-.*g.*\/.*$/
- schedules
......@@ -64,6 +68,7 @@ test_algo_unit:
artifacts:
<<: *lcov_artifact
only:
- *mr
- /^feature-.*a.*\/.*$/
- schedules
......@@ -75,6 +80,7 @@ test_algo_should:
reports:
junit: algo/tests/should.xml
only:
- *mr
- /^feature-.*a.*\/.*$/
- schedules
......@@ -84,6 +90,7 @@ test_algo_shouldvdj:
artifacts:
<<: *lcov_artifact
only:
- *mr
- /^feature-.*a.*\/.*$/
- schedules
......@@ -98,6 +105,7 @@ algo_coverage:
- coverage/
expire_in: 1 week
only:
- *mr
- /^feature-.*a.*\/.*$/
- schedules
......@@ -120,12 +128,14 @@ algo_valgrind_functional:
<<: *valgrind_functional
when: manual
only:
- *mr
- /^feature-.*a.*\/.*$/
- schedules
release_valgrind_functional:
<<: *valgrind_functional
only:
- *mr
- /^feature-.*a.*\/release$/
prepare_release:
......@@ -133,12 +143,14 @@ prepare_release:
script: make -C algo release RELEASE_TAG='rc'
when: manual
only:
- *mr
- /^feature-.*a.*\/.*$/
tgz_release:
stage: tgz_release
script: make -C algo release RELEASE_TAG=`cat algo/release`
only:
- *mr
- /^feature-.*a.*\/release$/
artifacts:
paths:
......@@ -162,12 +174,14 @@ copy_release:
ssh $VIDJIL_BONSAI "cd /bio1/www/html/vidjil; scp vidjil-algo-${release_name}* $VIDJIL_BONSAI_PROD:/bio1/www/html/vidjil"
when: manual
only:
- *mr
- /^feature-.*a.*\/release$/
deploy_release_prod:
stage: deploy_prod
when: manual
only:
- *mr
- /^feature-.*a.*\/release$/
script:
- |
......@@ -195,12 +209,14 @@ test_various_compilers_manual:
<<: *test_various_compilers
when: manual
only:
- *mr
- /^feature-.*a.*\/.*$/
- schedules
test_various_compilers_release:
<<: *test_various_compilers
only:
- *mr
- /^feature-.*a.*\/release$/
......@@ -213,6 +229,7 @@ test_browser_unit:
paths:
- browser/
only:
- *mr
- /^feature-.*c.*\/.*$/
- /^hotfix-.*c.*\/.*$/
- prod-client
......@@ -235,6 +252,7 @@ test_browser_unit:
reports:
junit: browser/test/test/TEST-*.xml
only:
- *mr
- /^feature-.*c.*\/.*$/
- /^hotfix-.*c.*\/.*$/
- prod-client
......@@ -261,6 +279,7 @@ test_browser_unit:
reports:
junit: browser/test/test/TEST-*.xml
only:
- *mr
- /^feature-.*c.*\/.*$/
- /^hotfix-.*c.*\/.*$/
- prod-client
......@@ -338,6 +357,7 @@ test_server_unit:
reports:
junit: server/web2py/test-reports/TEST*xml
only:
- *mr
- /^feature-.*s.*\/.*$/
- /^hotfix-.*s.*\/.*$/
- prod-server
......@@ -370,6 +390,7 @@ test_server_unit:
reports:
junit: server/web2py/applications/vidjil/tests/test/TEST-*.xml
only:
- *mr
- /^feature-.*s.*\/.*$/
- /^hotfix-.*s.*\/.*$/
- prod-server
......@@ -399,6 +420,7 @@ benchmark_algo:
- cd algo/tests ; python3 benchmark-releases.py -bic
when: manual
only:
- *mr
- /^feature-.*a.*\/.*$/
tags:
- several-compilers
......@@ -417,6 +439,7 @@ deploy_review:
url: http://$CI_BUILD_REF_SLUG.ci.vidjil.org/?data=analysis-example.vidjil
on_stop: stop_deploy_review
only:
- *mr
- /^feature-.*c.*\/.*$/
- /^hotfix-.*c.*\/.*$/
tags:
......@@ -470,6 +493,7 @@ deploy_germlines:
- tar cvzf germline-$date.tar.gz germline/*/*.fa germline/IMGT_RELEASE browser/js/germline.js
- scp germline-$date.tar.gz $VIDJIL_WWW:$REMOTE_GERMLINE_DIR
only:
- *mr
- manual
- /^feature-.*g.*\/.*$/
......@@ -486,6 +510,7 @@ stop_deploy_review:
name: review/$CI_BUILD_REF_NAME
action: stop
only:
- *mr
- /^feature-.*c.*\/.*$/
- /^hotfix-.*c.*\/.*$/
tags:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment