Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
Move to 'damax-solutions' org.
Browse files Browse the repository at this point in the history
  • Loading branch information
lakiboy committed Feb 16, 2019
1 parent d6abd57 commit 6955fb6
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 56 deletions.
30 changes: 16 additions & 14 deletions .travis.yml
Expand Up @@ -3,29 +3,31 @@ sudo: false
language: php

php:
- 7.1
- 7.2
- 7.1
- 7.2
- 7.3

env:
global:
- SYMFONY_PHPUNIT_VERSION=6.5
- SYMFONY_LOWEST=
global:
- SYMFONY_PHPUNIT_VERSION=7.4
- SYMFONY_LOWEST=

cache:
directories:
- $HOME/.composer/cache
directories:
- $HOME/.composer/cache

matrix:
include:
- php: 7.1
env: SYMFONY_LOWEST="3.4.*"
include:
- php: 7.1
env: SYMFONY_LOWEST="3.4.*"

install:
- composer install --prefer-dist
- if [ "$SYMFONY_LOWEST" != "" ]; then composer require symfony/framework-bundle:$SYMFONY_LOWEST --dev; fi
- composer install --prefer-dist
- if [ "$SYMFONY_LOWEST" != "" ]; then composer require symfony/framework-bundle:$SYMFONY_LOWEST --dev; fi

script:
- composer test-ci
- vendor/bin/php-cs-fixer fix --dry-run --diff
- vendor/bin/simple-phpunit --coverage-clover=build/logs/clover.xml

after_script:
- composer test-publish
- vendor/bin/php-coveralls
34 changes: 34 additions & 0 deletions Makefile
@@ -0,0 +1,34 @@
COMPOSER_RUNTIME = -e SYMFONY_PHPUNIT_VERSION=7.4

DOCKER_RUN = docker run --rm -v $(PWD):/app -w /app $(COMPOSER_RUNTIME) composer

all: install test
.PHONY: all

install:
$(DOCKER_RUN) install
.PHONY: install

update:
$(DOCKER_RUN) update
.PHONY: update

cs:
$(DOCKER_RUN) run-script cs
.PHONY: cs

test:
$(DOCKER_RUN) run-script test
.PHONY: test

test-cc:
$(DOCKER_RUN) run-script test-cc
.PHONY: test-cc

require:
$(DOCKER_RUN) require $(package)
.PHONY: require

require-dev:
$(DOCKER_RUN) require --dev $(package)
.PHONY: require-dev
8 changes: 6 additions & 2 deletions README.md
@@ -1,6 +1,6 @@
# Damax Services Client

[![Build Status](https://travis-ci.org/lakiboy/damax-services-client-php.svg?branch=master)](https://travis-ci.org/lakiboy/damax-services-client-php) [![Coverage Status](https://coveralls.io/repos/lakiboy/damax-services-client-php/badge.svg?branch=master&service=github)](https://coveralls.io/github/lakiboy/damax-services-client-php?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/lakiboy/damax-services-client-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/lakiboy/damax-services-client-php/?branch=master)
[![Build Status](https://travis-ci.org/damax-solutions/php-services-client.svg?branch=master)](https://travis-ci.org/damax-solutions/php-services-client) [![Coverage Status](https://coveralls.io/repos/damax-solutions/php-services-client/badge.svg?branch=master&service=github)](https://coveralls.io/github/damax-solutions/php-services-client?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/damax-solutions/php-services-client/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/damax-solutions/php-services-client/?branch=master)

PHP client for Damax Services. Provides integration with [Symfony Framework](https://github.com/symfony/symfony).

Expand Down Expand Up @@ -35,4 +35,8 @@ Contact _Damax Solutions_ to get an API key.

## Contribute

If you wish to contribute take a look how to [run the code locally](doc/development.md) in Docker.
Install dependencies and run tests:

```bash
$ make
```
8 changes: 0 additions & 8 deletions bin/phpunit-coverage

This file was deleted.

4 changes: 1 addition & 3 deletions composer.json
Expand Up @@ -25,9 +25,7 @@
"scripts": {
"cs": "php-cs-fixer fix",
"test": "simple-phpunit",
"test-cc": "./bin/phpunit-coverage",
"test-ci": "simple-phpunit --coverage-clover=build/logs/clover.xml",
"test-publish": "php-coveralls"
"test-cc": "phpdbg -qrr ./vendor/bin/simple-phpunit --coverage-html=build/phpunit"
},
"config": {
"sort-packages": true
Expand Down
26 changes: 0 additions & 26 deletions doc/development.md

This file was deleted.

2 changes: 1 addition & 1 deletion phpunit.xml.dist
Expand Up @@ -12,7 +12,7 @@
</php>

<testsuites>
<testsuite name="Damax services client suite">
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
Expand Up @@ -11,9 +11,9 @@ final class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder();
$treeBuilder = new TreeBuilder('damax_services_client');

$rootNode = $treeBuilder->root('damax_services_client');
$rootNode = $treeBuilder->getRootNode();
$rootNode
->children()
->scalarNode('api_key')->isRequired()->end()
Expand Down

0 comments on commit 6955fb6

Please sign in to comment.