From a62378d092140e3e6db21cde0152f0bf090ecb5c Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Wed, 25 Sep 2019 20:19:55 +0200 Subject: [PATCH 1/3] [Git] Added composer.lock to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 4945fbe..7d146a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/ +/composer.lock .php_cs.cache From ef8af0ced44289feb89e5c4debb465bfa6b93db7 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Thu, 26 Sep 2019 10:45:42 +0200 Subject: [PATCH 2/3] [GitHub] Created Pull Request template --- .github/pull_request_template.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..9302f85 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,18 @@ +| Question | Answer +| ------------------ | ------------------ +| **JIRA issue** | [EZP-XXXXX](https://jira.ez.no/browse/EZP-XXXXX) +| **Bug/Improvement**| yes/no +| **New feature** | yes/no +| **Target version** | +| **BC breaks** | yes/no +| **Tests pass** | yes/no +| **Doc needed** | yes/no + + + + +**TODO**: +- [ ] Implement feature / fix a bug. +- [ ] Implement tests. +- [ ] Fix new code according to Coding Standards (`$ composer fix-cs`). +- [ ] Ask for Code Review. From 4b4cd7fe277ccfd771e6bb9768ccfc23a1ebcb6f Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Thu, 26 Sep 2019 11:47:35 +0200 Subject: [PATCH 3/3] [Travis] Added code style checking job (#10) * [Travis] Created initial .travis.yml * [Travis] Added code style checking job * [Composer] Updated php-cs-fixer to ^2.15 version --- .travis.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ composer.json | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9c6ab09 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,42 @@ +language: php +php: '7.3' + +cache: + directories: + - $HOME/.composer/cache/files + +# test only master, stable branches and pull requests +branches: + only: + - master + - /^\d.\d+$/ + +before_install: + # Disable memory_limit for composer + - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini + # Disable XDebug for all jobs as we don't generate test coverge on travis + - phpenv config-rm xdebug.ini + # make sure we use UTF-8 encoding + - echo "default_charset=UTF-8" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini + +install: + - travis_retry composer install --no-progress --no-interaction --no-suggest --prefer-dist + +matrix: + include: + - name: 'Code Style check' + php: '7.3' + script: + - composer fix-cs + +notifications: + slack: + rooms: + - secure: YzZCmiziVQLVJBgxGmsN+QmXoarDMCJPBJ/OqM8VnlD7oN36K9owYSnrOUVGCQKPjuK8SnFiMTzcJBJ/AHl0MX4TC2Bro54hHXFruJ5NQzGY7hdCAcXUzMgeXUg7pjwAS++3kTKRhab27elLjxwOT9Io/Csem4JrZbNvCS7+0f4dRoAqDRYQXf/BJ/tW5qM4c7g9jxbd80pjirqVO47BmPdRqSFK/Dm3tc7HAgsIgJpzie9tfe8H/2hYlsA/RdV0zkYtlZ78Kx2nfDh1Ap/WQJBveQBb4qhWmjpbuJptBCY5Ho/+v8+200vZf+6HiBV+oj0L4s8LIRZJxaTqGnPT8s6FUwuaiGwnBKLTQs8QWIRklfVX6Ih/+yNHT5JvmEW227ZAgfHom51nGZayxwpptSUxy3XXTHKXtX8I48qQHVKU8oXx7kG17KMggJIzZtljdts1n3WWf5eqvtUNpV5A5tjGe6ehuQTg4eBx6GzsiULCFo7rOr1Hg/lmAefrJO/+/C21OqTb0DsFtDG9gMuaQNnFidGe2nKu5EbjY24Ivgi0FYbSprjgNVHmLVGHm5zfzlxMM7D2tBvN3iZYiFgrWSP+6rAZZNUcgK6AN0kZczd9AIQs0lHOMPb1o5FHH0lM/uDb3SSyxF+m98SN5nvy1tOdr2pox2JVL2hK1m5vKY8= + on_success: change + on_failure: always + on_pull_requests: false + +# reduce depth (history) of git checkout +git: + depth: 30 diff --git a/composer.json b/composer.json index 201f9f5..164239c 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "symfony/symfony": "^3.4" }, "require-dev": { - "friendsofphp/php-cs-fixer": "~2.7.1", + "friendsofphp/php-cs-fixer": "^2.15", "phpunit/phpunit": "^6.4" }, "scripts": {