|
|
@ -1,8 +1,11 @@
|
|
|
|
kind: pipeline
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
type: docker
|
|
|
|
name: HeartWave
|
|
|
|
name: HeartTrack
|
|
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
|
|
|
|
branch:
|
|
|
|
|
|
|
|
- master
|
|
|
|
|
|
|
|
- merged
|
|
|
|
event:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- push
|
|
|
|
|
|
|
|
|
|
|
@ -16,6 +19,7 @@ steps:
|
|
|
|
# Installe les dépendances PHP si nécessaire
|
|
|
|
# Installe les dépendances PHP si nécessaire
|
|
|
|
- composer install --no-interaction
|
|
|
|
- composer install --no-interaction
|
|
|
|
- ./vendor/bin/phpunit tests
|
|
|
|
- ./vendor/bin/phpunit tests
|
|
|
|
|
|
|
|
depends_on: [ docker-build-and-push ]
|
|
|
|
|
|
|
|
|
|
|
|
# Sonar static code analisis deployment
|
|
|
|
# Sonar static code analisis deployment
|
|
|
|
# TODO : use an image that already have unzip
|
|
|
|
# TODO : use an image that already have unzip
|
|
|
@ -48,6 +52,7 @@ steps:
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
|
|
|
git_auth: true
|
|
|
|
|
|
|
|
|
|
|
|
- name: notify
|
|
|
|
- name: notify
|
|
|
|
image: ruby:2.1
|
|
|
|
image: ruby:2.1
|
|
|
@ -58,4 +63,4 @@ steps:
|
|
|
|
- refs/tags/*-demo
|
|
|
|
- refs/tags/*-demo
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- sh ./notifymail.sh
|
|
|
|
- sh ./notifymail.sh
|
|
|
|
depends_on: [ docker-build-and-push ]
|
|
|
|
depends_on: [ docker-build-and-push ]
|