Mise à jour de '.drone.yml'
continuous-integration/drone/push Build encountered an error Details

master
Louis DUFOUR 2 years ago
parent d0b0521de6
commit e5e187d56b

@ -8,38 +8,31 @@ trigger:
steps: steps:
- name: Setup - name: Setup
image: 'jitesoft/phpunit:latest' image: jitesoft/phpunit:latest
commands: commands:
- >- - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
curl -sS https://getcomposer.org/installer | php --
--install-dir=/usr/local/bin --filename=composer
- composer install - composer install
- name: test - name: test
image: 'jitesoft/phpunit:latest' image: jitesoft/phpunit:latest
commands: commands:
- >- - vendor/bin/phpunit --filter "/(testCallWebService)( .*)?$/" ./common/Tests/WS_UtilTest.php
vendor/bin/phpunit --filter "/(testCallWebService)( .*)?$/" - vendor/bin/phpunit --filter "/(testAllKeysToUppercase)( .*)?$/" ./common/Tests/WS_UtilTest.php
./common/Tests/WS_UtilTest.php depends_on: [Setup]
- >-
vendor/bin/phpunit --filter "/(testAllKeysToUppercase)( .*)?$/"
./common/Tests/WS_UtilTest.php
depends_on:
- Setup
- name: sonar - name: sonar
image: 'sonarsouce/sonar-scanner-cli:5' image: sonarsouce/sonar-scanner-cli:5
commands: >- commands:
-Dsonar.projectKey=CICD_WebPage_Louis_Duf \ -Dsonar.sources=. \ - Dsonar.projectKey=CICD_WebPage_Louis_Duf
-Dsonar.host.url=https://codefirst.iut.uca.fr/sona - Dsonar.sources=.
- Dsonar.host.url=https://codefirst.iut.uca.fr/sona
settings: settings:
sonar_token: sonar_token:
from_secret: SECRET_SONAR_LOGIN from_secret: SECRET_SONAR_LOGIN
depends_on: depends_on: [Setup]
- Setup
- name: hadolint - name: hadolint
image: 'hadolint/hadolint:latest-alpine' image: hadolint/hadolint:latest-alpine
commands: commands:
- hadolint Dockerfile - hadolint Dockerfile
depends_on: depends_on:
@ -59,15 +52,14 @@ steps:
- hadolint - hadolint
- name: deploy-container - name: deploy-container
image: >- image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment: environment:
IMAGENAME: 'hub.codefirst.iut.uca.fr/louis.dufour/CICD_WebPage:latest' IMAGENAME: hub.codefirst.iut.uca.fr/louis.dufour/CICD_WebPage:latest
CONTAINERNAME: phpContainerLouis CONTAINERNAME: phpContainerLouis
COMMAND: create COMMAND: create
OVERWRITE: true OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_CONTAINER_PATH: louis.dufour-php CODEFIRST_CLIENTDRONE_ENV_CONTAINER_PATH: louis.dufour-php
CODEFIRST_CLIENTDRONE_ENV_LIBRARY_URL: 'https://codefirst.iut.uca.fr/containers/louis.dufour-php' CODEFIRST_CLIENTDRONE_ENV_LIBRARY_URL: https://codefirst.iut.uca.fr/containers/louis.dufour-php
CODEFIRST_CLIENTDRONE_ENV_BACKEND_URL: 'https://codefirst.iut.uca.fr/containers/louis.dufour-php' CODEFIRST_CLIENTDRONE_ENV_BACKEND_URL: https://codefirst.iut.uca.fr/containers/louis.dufour-php
depends_on: depends_on:
- docker-build-and-push - docker-build-and-push

Loading…
Cancel
Save