circleci
This commit is contained in:
parent
c64dec1080
commit
959db2e247
@ -5,9 +5,8 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
docker:
|
docker: # run the steps with Docker
|
||||||
# specify the version you desire here
|
- image: circleci/php:7.1-node-browsers
|
||||||
- image: circleci/php:7.1.5-browsers
|
|
||||||
|
|
||||||
# Specify service dependencies here if necessary
|
# Specify service dependencies here if necessary
|
||||||
# CircleCI maintains a library of pre-built images
|
# CircleCI maintains a library of pre-built images
|
||||||
@ -17,23 +16,21 @@ jobs:
|
|||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout # special step to check out source code to working directory
|
||||||
|
- run: sudo apt install -y libsqlite3-dev zlib1g-dev
|
||||||
# Download and cache dependencies
|
- run: sudo docker-php-ext-install zip
|
||||||
- restore_cache:
|
- run: sudo composer self-update
|
||||||
|
- restore_cache: # special step to restore the dependency cache if `composer.lock` does not change
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-{{ checksum "composer.json" }}
|
- composer-v1-{{ checksum "composer.lock" }}
|
||||||
# fallback to using the latest cache if no exact match is found
|
- composer-v1-
|
||||||
- v1-dependencies-
|
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
- cp .travis/env.travis.php env.php
|
- cp .travis/env.travis.php env.php
|
||||||
- composer install --dev --no-interaction --verbose
|
- composer install --dev --no-interaction --verbose
|
||||||
|
- save_cache: # special step to save the dependency cache with the `composer.lock` cache key template
|
||||||
- save_cache:
|
key: composer-v1-{{ checksum "composer.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- ./vendor
|
- vendor
|
||||||
key: v1-dependencies-{{ checksum "composer.json" }}
|
|
||||||
|
|
||||||
# run tests!
|
# run tests!
|
||||||
- run: vendor/bin/phpunit --debug --verbose
|
- run: vendor/bin/phpunit --debug --verbose
|
Loading…
Reference in New Issue
Block a user