2018-01-04 07:48:08 +00:00
|
|
|
# PHP CircleCI 2.0 configuration file
|
|
|
|
#
|
|
|
|
# Check https://circleci.com/docs/2.0/language-php/ for more details
|
|
|
|
#
|
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2018-01-04 07:49:28 +00:00
|
|
|
- image: circleci/php:7.1-browsers
|
2018-01-04 07:48:08 +00:00
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2018-01-04 07:56:44 +00:00
|
|
|
- v1-dependencies-{{ checksum "composer.json" }}
|
2018-01-04 07:48:08 +00:00
|
|
|
- v1-dependencies-
|
|
|
|
- run: composer install -n --prefer-dist
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ./vendor
|
2018-01-04 07:56:44 +00:00
|
|
|
key: v1-dependencies-{{ checksum "composer.json" }}
|
2018-01-04 07:52:15 +00:00
|
|
|
- run: ./vendor/bin/phpunit --log-junit ~/phpunit/junit.xml
|
|
|
|
- store_test_results:
|
|
|
|
path: ~/phpunit
|
|
|
|
- store_artifacts:
|
|
|
|
path: ~/phpunit
|