Newer
Older
## Cache composer packages between all jobs and all branches
## of this project...
cache:
key: one-key-to-rull-them-all
paths:
- composer-cache/
# setup Laravel
- cp env.test .env
- touch storage/app/db.sqlite
- php artisan migrate
- vendor/bin/phpcpd app/ config/ database/ public/ resources/ routes/ tests/
- vendor/bin/phpstan analyze --memory-limit=512M
image:
name: "zricethezav/gitleaks"
entrypoint: [""]
script:
- gitleaks -v --repo-path=./ --config=gitleaks.toml
# deploy only when pushed to branch master
# and tests succeeded
deploy:
stage: deploy
image: alpine