Skip to content

Instantly share code, notes, and snippets.

@ssx
Created November 19, 2016 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssx/e818c3e65a0b896dd947677989c90cc5 to your computer and use it in GitHub Desktop.
Save ssx/e818c3e65a0b896dd947677989c90cc5 to your computer and use it in GitHub Desktop.
.gitlab-ci.yml
image: mnapoli/php7-cli
stages:
- test
- deploy
composer_tasks:
stage: test
script:
- composer self-update
- composer validate
- composer install
run_phpunit_tests:
stage: test
script:
- vendor/bin/phpunit
deploy_site:
stage: deploy
script:
- apt-get update && apt-get -y install curl
- curl -X POST --ipv4 https://some/url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment