Last active
February 22, 2017 17:53
-
-
Save edbizarro/dfe68f7ab7bc3796a85dc16c69b9a73a to your computer and use it in GitHub Desktop.
medium-gitlab-ci-1.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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