ci: only run the build and test jobs if sources changed
This commit is contained in:
+20
-7
@@ -23,7 +23,16 @@ variables:
|
|||||||
## Build jobs
|
## Build jobs
|
||||||
#
|
#
|
||||||
|
|
||||||
|
.sources_changed:
|
||||||
|
only:
|
||||||
|
changes:
|
||||||
|
- "CMakeLists.txt"
|
||||||
|
- ".gitlab-ci.yml"
|
||||||
|
- "src/**/*"
|
||||||
|
- "tests/**/*"
|
||||||
|
|
||||||
.basic_build:
|
.basic_build:
|
||||||
|
extends: .sources_changed
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@@ -106,6 +115,7 @@ build:no_db_botan:
|
|||||||
#
|
#
|
||||||
|
|
||||||
.basic_test:
|
.basic_test:
|
||||||
|
extends: .sources_changed
|
||||||
stage: test
|
stage: test
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@@ -246,10 +256,16 @@ packaging:archlinux:
|
|||||||
# Deploy jobs
|
# Deploy jobs
|
||||||
#
|
#
|
||||||
|
|
||||||
deploy_doc:
|
.doc_changed:
|
||||||
stage: deploy
|
|
||||||
only:
|
only:
|
||||||
- master@louiz/biboumi
|
changes:
|
||||||
|
- "CMakeLists.txt"
|
||||||
|
- ".gitlab-ci.yml"
|
||||||
|
- "doc/**/*"
|
||||||
|
|
||||||
|
deploy_doc:
|
||||||
|
extends: .doc_changed
|
||||||
|
stage: deploy
|
||||||
tags:
|
tags:
|
||||||
- www
|
- www
|
||||||
environment:
|
environment:
|
||||||
@@ -264,9 +280,8 @@ deploy_doc:
|
|||||||
dependencies: []
|
dependencies: []
|
||||||
|
|
||||||
deploy_doc_tag:
|
deploy_doc_tag:
|
||||||
|
extends: .doc_changed
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
|
||||||
- tags@louiz/biboumi
|
|
||||||
tags:
|
tags:
|
||||||
- www
|
- www
|
||||||
environment:
|
environment:
|
||||||
@@ -282,8 +297,6 @@ deploy_doc_tag:
|
|||||||
|
|
||||||
undeploy_doc_tag:
|
undeploy_doc_tag:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
|
||||||
- tags@testing/biboumi
|
|
||||||
tags:
|
tags:
|
||||||
- www
|
- www
|
||||||
variables:
|
variables:
|
||||||
|
|||||||
Reference in New Issue
Block a user