Skip to content
Snippets Groups Projects
Commit 9b411a54 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Ajout d'un .gitlab-ci.yml

parent bc3669ab
No related branches found
No related tags found
No related merge requests found
Pipeline #10431 passed
image: registre.unicaen.fr:5000/unicaen-dev-php7.3-apache
stages:
- update-repo-directory
- publish
- tests
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor/
#unit-tests:
# stage: tests
# script:
# - composer install --no-interaction --no-suggest --no-progress
# - php vendor/bin/phpunit --coverage-text=coverage.txt --colors=never
# artifacts:
# paths:
# - coverage.txt
repo-update:
stage: update-repo-directory
update-satis:
stage: publish
script:
- http_proxy=http://10.14.128.99:3128 apt -qq update
- http_proxy=http://10.14.128.99:3128 apt -qq -y install openssh-client
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh -o StrictHostKeychecking=no root@10.14.129.37 "cd /var/www/html/packagist/satis && php bin/satis build --verbose unicaen.json /var/www/html/packagist/"
- curl https://gest.unicaen.fr/packagist/update
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment