|
|
@ -14,10 +14,7 @@ steps:
|
|
|
|
- cd Sources
|
|
|
|
- cd Sources
|
|
|
|
- rm -r vendor
|
|
|
|
- rm -r vendor
|
|
|
|
- rm composer.lock
|
|
|
|
- rm composer.lock
|
|
|
|
- apk update && \
|
|
|
|
#- apk update && apk add --no-cache libcouchbase-dev && pecl install couchbase && docker-php-ext-enable couchbase
|
|
|
|
apk add --no-cache libcouchbase-dev && \
|
|
|
|
|
|
|
|
pecl install couchbase && \
|
|
|
|
|
|
|
|
docker-php-ext-enable couchbase
|
|
|
|
|
|
|
|
# Installe les dépendances PHP si nécessaire
|
|
|
|
# Installe les dépendances PHP si nécessaire
|
|
|
|
- php composer.phar install --no-interaction
|
|
|
|
- php composer.phar install --no-interaction
|
|
|
|
- ./vendor/bin/phpunit tests
|
|
|
|
- ./vendor/bin/phpunit tests
|
|
|
@ -39,7 +36,7 @@ steps:
|
|
|
|
- export SONAR_SCANNER_OPTS="-server"
|
|
|
|
- export SONAR_SCANNER_OPTS="-server"
|
|
|
|
- cd Sources
|
|
|
|
- cd Sources
|
|
|
|
- sonar-scanner -D sonar.projectKey=HeartTrack -D sonar.host.url=https://codefirst.iut.uca.fr/sonar
|
|
|
|
- sonar-scanner -D sonar.projectKey=HeartTrack -D sonar.host.url=https://codefirst.iut.uca.fr/sonar
|
|
|
|
depends_on: [ test ]
|
|
|
|
#depends_on: [ test ]
|
|
|
|
# build image and push on the registry ✔️
|
|
|
|
# build image and push on the registry ✔️
|
|
|
|
- name: rewrite-urls
|
|
|
|
- name: rewrite-urls
|
|
|
|
image: 'busybox:latest'
|
|
|
|
image: 'busybox:latest'
|
|
|
@ -76,19 +73,6 @@ steps:
|
|
|
|
CONTAINERNAME: web
|
|
|
|
CONTAINERNAME: web
|
|
|
|
COMMAND: create
|
|
|
|
COMMAND: create
|
|
|
|
OVERWRITE: true
|
|
|
|
OVERWRITE: true
|
|
|
|
ADMINS: david.d_almeida
|
|
|
|
ADMINS: davidd_almeida,kevinmonteiro,antoineperederii,paullevrault,antoinepinagot
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- docker-build-and-push
|
|
|
|
- docker-build-and-push
|
|
|
|
|
|
|
|
|
|
|
|
- name: notify
|
|
|
|
|
|
|
|
image: ruby:2.1
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
|
|
|
status: [ success ]
|
|
|
|
|
|
|
|
ref:
|
|
|
|
|
|
|
|
include:
|
|
|
|
|
|
|
|
- refs/tags/*-demo
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
- sh ./notifymail.sh
|
|
|
|
|
|
|
|
depends_on: [ docker-build-and-push ]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|