Skip to content

Instantly share code, notes, and snippets.

@Thijmen
Created May 8, 2019 09:40
Show Gist options
  • Save Thijmen/63b082bd7bd8018b83146409140bc1ec to your computer and use it in GitHub Desktop.
Save Thijmen/63b082bd7bd8018b83146409140bc1ec to your computer and use it in GitHub Desktop.
Current configuration
image: myimage
variables:
DOCKER_DRIVER: overlay2
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor/
- .dusk
services:
- mariadb:10.2
stages:
- setup
- test
- deploy
setup:
only:
variables:
- $CI_COMMIT_MESSAGE =~ /\[CC\]/
before_script:
- apt-get install php7.2-xdebug
- echo "COVERAGE ENABLED"
- touch .dusk
test:
stage: test
script:
- my scripts
artifacts:
paths:
- ./storage/logs # for debugging
- ./tests/Browser/screenshots
- ./tests/Browser/console
- ./tests/Coverage
- ./coverage
expire_in: 1 days
when: always
deploy:
stage: deploy
script:
- composer global require laravel/envoy --no-interaction --no-progress
- envoy run deploy
environment:
name: staging
url: https://build.project.com
only:
- develop
variables:
MYSQL_DATABASE: project_name
MYSQL_ROOT_PASSWORD: secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment