From ce3e490ab2584b9491c342af95358aba92c210d5 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Wed, 10 Apr 2019 23:16:48 +0200 Subject: [PATCH] [enh] CI: Trigger integration stages pipeline only when code changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Documentation, README.md and so on changes shouldn’t triggers it --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2705f02f0..27e15ecf3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,18 @@ push_to_github: - master - dev +.changes: &changes + only: + changes: + - app/**/* + - bin/duniter + - .gitlab-ci.yml + - index.ts + - package.json + - releases/**/* + - server.ts + - test/**/* + .nvm_env: &nvm_env tags: - redshift @@ -43,6 +55,7 @@ push_to_github: - node_modules/ build: + <<: *changes <<: *nvm_env stage: build script: @@ -73,6 +86,7 @@ build: # - dev test: + <<: *changes <<: *nvm_env stage: test script: @@ -91,6 +105,7 @@ test: expire_in: 4h sync_g1: + <<: *changes <<: *nvm_env stage: integration script: @@ -100,6 +115,7 @@ sync_g1: - tags sync_gtest: + <<: *changes <<: *nvm_env stage: integration script: -- GitLab