Commit 220da001 authored by Sergio Fabián Vier's avatar Sergio Fabián Vier 🚴🏼
Browse files

avances implementacion CI

parent 09423962
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- ./vendor/
- ./composer
stages:
- pre
- qa
- test
variables:
ARAI_REGISTRY_ALIAS: /registry
ARAI_REGISTRY_USER: usuario
ARAI_REGISTRY_PASS: clave
ARAI_REGISTRY_DB_HOST: postgres
ARAI_REGISTRY_DB_PORT: "5432"
ARAI_REGISTRY_DB_DBNAME: registry
ARAI_REGISTRY_DB_USERNAME: postgres
ARAI_REGISTRY_DB_PASSWORD: postgres
ARAI_REGISTRY_DB_SCHEMA: registry
ARAI_REGISTRY_DB_ENCODING: UTF8
ARAI_REGISTRY_LOG_HANDLER: errorlog
ARAI_REGISTRY_LOG_LEVEL: DEBUG
POSTGRES_DB: registry
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
composer:
stage: pre
image: siutoba/docker-web
script:
- composer config cache-files-dir ./composer
- composer install --prefer-dist > /dev/null
artifacts:
paths:
- ./vendor/
- ./bin
expire_in: 1 day
sonar:
stage: qa
image: zaquestion/sonarqube-scanner
script:
- sonar-scanner -Dsonar.projectBaseDir=./ -Dsonar.login=$SONAR_TOKEN
allow_failure: true
php-cs-fixer:
stage: qa
image: siutoba/docker-web
script:
- ./bin/php-cs-fixer fix --dry-run --diff src
allow_failure: true
dependencies:
- composer
php:local-test:
image: siutoba/docker-web
stage: test
script:
- echo "a implementar!!"
#- ./bin/phpunit --colors --debug --coverage-text
dependencies:
- composer
\ No newline at end of file
sonar.projectKey=siu:instalador
sonar.projectName=SIU-Instalador
sonar.projectVersion=1.3.0-dev
sonar.links.homepage=https://gitlab.siu.edu.ar/siu/instalador
sonar.sourceEncoding=UTF-8
sonar.sources=src
sonar.host.url=http://sonar.siu.edu.ar:8080
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment