This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try out circle 2.0 * fix path to phpunit * Run on 5.6 and 7.2 also * Lower required phpunit version to test against php 5.6 * Try to run integration tests * Need to run integrations * Install composer packages * Fetch the zipkin server ip address * Fix integration test * Need to setup remote docker
- Loading branch information
Showing
10 changed files
with
74 additions
and
254 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
unit-config: &unit-config | ||
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: composer install -n --prefer-dist | ||
|
||
- save_cache: | ||
paths: | ||
- ./vendor | ||
key: v1-dependencies-{{ checksum "composer.json" }} | ||
|
||
# run tests! | ||
- run: vendor/bin/phpcs --standard=./phpcs-ruleset.xml | ||
- run: vendor/bin/phpunit | ||
|
||
version: 2 | ||
jobs: | ||
php56: | ||
<<: *unit-config | ||
docker: | ||
- image: circleci/php:5.6-node | ||
|
||
php70: | ||
<<: *unit-config | ||
docker: | ||
- image: circleci/php:7.0-node | ||
|
||
php71: | ||
<<: *unit-config | ||
docker: | ||
- image: circleci/php:7.1-node | ||
|
||
php72: | ||
<<: *unit-config | ||
docker: | ||
- image: circleci/php:7.2-node | ||
|
||
integration: | ||
docker: | ||
- image: circleci/php:7.2-node | ||
steps: | ||
- checkout | ||
|
||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
|
||
- run: docker network create -d bridge nw_zipkin | ||
- run: docker run -d -p9411:9411 --name=zipkin-server --network=nw_zipkin openzipkin/zipkin:2.7 | ||
- run: docker build -t integration-test . | ||
- run: docker run --network=nw_zipkin -e ZIPKIN_HOST=zipkin-server integration-test vendor/bin/phpunit --config=./phpunit-integration.xml.dist | ||
|
||
workflows: | ||
version: 2 | ||
units: | ||
jobs: | ||
- php56 | ||
- php70 | ||
- php71 | ||
- php72 | ||
- integration |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.