Skip to content
Snippets Groups Projects
Commit ce3e490a authored by Moul's avatar Moul
Browse files

[enh] CI: Trigger integration stages pipeline only when code changes

- Documentation, README.md and so on changes shouldn’t triggers it
parent 4619ba7c
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,18 @@ push_to_github: ...@@ -28,6 +28,18 @@ push_to_github:
- master - master
- dev - dev
.changes: &changes
only:
changes:
- app/**/*
- bin/duniter
- .gitlab-ci.yml
- index.ts
- package.json
- releases/**/*
- server.ts
- test/**/*
.nvm_env: &nvm_env .nvm_env: &nvm_env
tags: tags:
- redshift - redshift
...@@ -43,6 +55,7 @@ push_to_github: ...@@ -43,6 +55,7 @@ push_to_github:
- node_modules/ - node_modules/
build: build:
<<: *changes
<<: *nvm_env <<: *nvm_env
stage: build stage: build
script: script:
...@@ -73,6 +86,7 @@ build: ...@@ -73,6 +86,7 @@ build:
# - dev # - dev
test: test:
<<: *changes
<<: *nvm_env <<: *nvm_env
stage: test stage: test
script: script:
...@@ -91,6 +105,7 @@ test: ...@@ -91,6 +105,7 @@ test:
expire_in: 4h expire_in: 4h
sync_g1: sync_g1:
<<: *changes
<<: *nvm_env <<: *nvm_env
stage: integration stage: integration
script: script:
...@@ -100,6 +115,7 @@ sync_g1: ...@@ -100,6 +115,7 @@ sync_g1:
- tags - tags
sync_gtest: sync_gtest:
<<: *changes
<<: *nvm_env <<: *nvm_env
stage: integration stage: integration
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment