summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2019-09-13 09:48:02 +0200
committerlouiz’ <louiz@louiz.org>2019-09-15 21:41:39 +0200
commitdb24caad3d89c5ff92748827ee8682c4862088e6 (patch)
tree9a889cde4b808c7f57d168db15e27bc55f75121b
parentc392d7127fbf4a5e6d9830014a02fbaa358ba883 (diff)
downloadbiboumi-db24caad3d89c5ff92748827ee8682c4862088e6.tar.gz
biboumi-db24caad3d89c5ff92748827ee8682c4862088e6.tar.bz2
biboumi-db24caad3d89c5ff92748827ee8682c4862088e6.tar.xz
biboumi-db24caad3d89c5ff92748827ee8682c4862088e6.zip
ci: only run the build and test jobs if sources changed
-rw-r--r--.gitlab-ci.yml25
1 files changed, 19 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1a073f9..9a76938 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,7 +23,16 @@ variables:
## Build jobs
#
+.sources_changed:
+ only:
+ changes:
+ - "CMakeLists.txt"
+ - ".gitlab-ci.yml"
+ - "src/**/*"
+ - "tests/**/*"
+
.basic_build:
+ extends: .sources_changed
stage: build
tags:
- docker
@@ -106,6 +115,7 @@ build:no_db_botan:
#
.basic_test:
+ extends: .sources_changed
stage: test
tags:
- docker
@@ -246,10 +256,16 @@ packaging:archlinux:
# Deploy jobs
#
+.doc_changed:
+ only:
+ changes:
+ - "CMakeLists.txt"
+ - ".gitlab-ci.yml"
+ - "doc/**/*"
+
deploy_doc:
+ extends: .doc_changed
stage: deploy
- only:
- - master@louiz/biboumi
tags:
- www
environment:
@@ -264,9 +280,8 @@ deploy_doc:
dependencies: []
deploy_doc_tag:
+ extends: .doc_changed
stage: deploy
- only:
- - tags@louiz/biboumi
tags:
- www
environment:
@@ -282,8 +297,6 @@ deploy_doc_tag:
undeploy_doc_tag:
stage: deploy
- only:
- - tags@testing/biboumi
tags:
- www
variables: