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/phpstan analyze --memory-limit=512M
# in cylab/php74, security-checker is already installed...
- ~/.composer/vendor/bin/security-checker security:check composer.lock
image:
name: "zricethezav/gitleaks"
entrypoint: [""]
script:
# to avoid
# fatal: unsafe repository ('/builds/...' is owned by someone else)
# with recent git versions
- git config --global --add safe.directory $CI_PROJECT_DIR