diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..8c9ec5c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +kind: pipeline +name: default + +steps: + - name: install + image: composer + commands: + - composer install + + - name: test + image: php:8.1 + commands: + - vendor/bin/phpunit --configuration config.xml diff --git a/README.md b/README.md index 466d34a..3694383 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://ci.basehosts.de/api/badges/OrangeJungle/CdsConnector/status.svg)](https://ci.basehosts.de/OrangeJungle/CdsConnector) + # CdsConnector ================ diff --git a/deploy.yaml b/deploy.yaml new file mode 100644 index 0000000..3af840a --- /dev/null +++ b/deploy.yaml @@ -0,0 +1,21 @@ +import: + - recipe/symfony.php + +config: + repository: 'https://mmoeller:Linchen90@gitbase.de/OrangeJungle/CdsConnector.git' + + + +hosts: + 192.168.178.95: + alias: 'staging' + remote_user: pi + deploy_path: '~/CdsConnector' + +tasks: + build: + - cd: '{{release_path}}' + - run: 'composer install' + +after: + deploy:failed: deploy:unlock