Skip to content

Instantly share code, notes, and snippets.

@stuartabrown
Created January 18, 2019 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stuartabrown/b845c74294c57b8543f40c1963c32399 to your computer and use it in GitHub Desktop.
Save stuartabrown/b845c74294c57b8543f40c1963c32399 to your computer and use it in GitHub Desktop.
.circleci/config.yml
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/php:7.1-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mysql:9.4
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "composer.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: sudo apt-get -y update
- run: sudo apt-get install libwebp-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libbz2-dev
- run: sudo docker-php-ext-install zip intl
- run: sudo docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf
- run: sudo docker-php-ext-install gd
- run: sudo docker-php-ext-install mysqli
- run: sudo docker-php-ext-install bz2
- run: sudo docker-php-ext-install pdo pdo_mysql
- run: sudo docker-php-ext-install -j5 gd mbstring mysqli pdo pdo_mysql shmop
- run: composer update
- run: composer install -n --prefer-dist
- save_cache:
paths:
- ./vendor
key: v1-dependencies-{{ checksum "composer.json" }}
# run tests!
# - run: phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment