This commit is contained in:
16
.drone.yml
16
.drone.yml
@@ -4,26 +4,10 @@ name: bogazici-api
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- develop
|
||||
- test
|
||||
- main
|
||||
|
||||
steps:
|
||||
- name: laravel-check
|
||||
image: php:8.4-cli
|
||||
when:
|
||||
branch:
|
||||
- develop
|
||||
commands:
|
||||
- apt-get update && apt-get install -y git unzip curl libzip-dev libicu-dev default-mysql-client
|
||||
- docker-php-ext-install pdo_mysql zip intl
|
||||
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
- cp .env.example .env || true
|
||||
- composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||
- php artisan key:generate --force || true
|
||||
- php artisan optimize:clear || true
|
||||
- php artisan test || true
|
||||
|
||||
- name: deploy-test
|
||||
image: appleboy/drone-ssh
|
||||
when:
|
||||
|
||||
Reference in New Issue
Block a user