Skip to content

Instantly share code, notes, and snippets.

@edbizarro
Last active February 22, 2017 17:53
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 edbizarro/dfe68f7ab7bc3796a85dc16c69b9a73a to your computer and use it in GitHub Desktop.
Save edbizarro/dfe68f7ab7bc3796a85dc16c69b9a73a to your computer and use it in GitHub Desktop.
medium-gitlab-ci-1.yml
# Select image from https://hub.docker.com/_/php/
image: php:7.1
before_script:
# Install project dependencies
- apt-get update
- apt-get install git libmcrypt-dev libxml2-dev libcurl4-gnutls-dev -yqq
- docker-php-ext-install -j$(nproc) curl mcrypt mbstring zip xml json
# Install composer
- curl -sS https://getcomposer.org/installer | php
# Install all project dependencies
- php composer.phar install --prefer-dist --no-ansi --no-interaction --no-progress
test:
script:
- vendor/bin/phpunit --coverage-text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment