Skip to content

Feature/multiple updates #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Feb 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9aba5f9
Added github templates
frenck Feb 24, 2017
bd7eb41
Changed travis build to test against PHP 7.1
frenck Feb 24, 2017
93e1e3a
Update documentation to match our Markdown guidelines
frenck Feb 24, 2017
ec8c22e
Added markdown linting via NPM
frenck Feb 24, 2017
5cf6f17
Added GrumPHP configuration
frenck Feb 24, 2017
3c92b08
Changed: Update QA tools versions and added deployer and humbug
frenck Feb 24, 2017
3e04250
Removed PHPUnit6, we are not ready for this. Small sorting/text impro…
frenck Feb 25, 2017
6d88770
Removed ocramius/package-versions require in order to maintain php 5.…
frenck Feb 25, 2017
5cb224d
Added phing build tool
frenck Feb 25, 2017
c585a4c
Updated TravisCI with more checks
frenck Feb 25, 2017
7cbda67
Modified TravisCI script in order to get the latest Shellcheck
frenck Feb 25, 2017
69afbca
Modified TravisCI script in order to get the latest Shellcheck
frenck Feb 25, 2017
c2be6b9
Modified TravisCI script in order to get the latest Shellcheck
frenck Feb 25, 2017
832d6b2
Modified TravisCI script in order to get the latest Shellcheck
frenck Feb 25, 2017
0361323
Modified TravisCI script in order to get the latest Shellcheck
frenck Feb 25, 2017
af85e14
Modified TravisCI script in order to get the latest Shellcheck
frenck Feb 25, 2017
2e5e262
Modified TravisCI script in order to get the latest Shellcheck
frenck Feb 25, 2017
9bf4459
Modified TravisCI script in order to get the latest Shellcheck
frenck Feb 25, 2017
e37827d
Moved Composer security-checker to end tests
frenck Feb 25, 2017
3fe460d
Changed TravisCI: Removed a Shellcheck debug, moved GPG to before_ins…
frenck Feb 25, 2017
d9d86f4
Changed TravisCI: Leverage composer caching and improved composer output
frenck Feb 25, 2017
bdc3cc4
Changed TravisCI: Replaced NPM with Yarn, leveraged Travis caching ya…
frenck Feb 25, 2017
5077e32
Updated README to reflect all latests changes
frenck Feb 25, 2017
d463d83
Changed TravisCI: Added json & yaml linting to build
frenck Feb 25, 2017
f226128
Changed TravisCI: Added json & yaml linting to build
frenck Feb 25, 2017
2b75a75
Changed TravisCI: YAMLLint feedback, made jsonlint a little more silent
frenck Feb 25, 2017
9c8609d
TravisCI: YAMLLint feedback
frenck Feb 25, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .alexignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONTRIBUTING.md
vendor/*
node_modules/*
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Problem/Motivation

> (Why the issue was filed)

## Expected behaviour

> (What you expected to happen)

## Actual behaviour

> (What actually happened)

## Steps to reproduce

> (How can someone else make/see it happen)

## Proposed changes

> (If you have a proposed change, workaround or fix, describe the rationale behind it)
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Proposed Changes

> (Describe the changes and rationale behind them)

## Related Issues

> ([GitHub link](https://help.github.com/articles/autolinked-references-and-urls/) to related issues or pull requests)
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules/
vendor/
composer.lock
npm-debug.log
yarn.lock
21 changes: 21 additions & 0 deletions .remarkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"presets": [
"remark-preset-lint-dealerdirect"
],
"plugins": {
"validate-links": {
}
},
"settings": {
"commonmark": true,
"gfm": true,
"yaml": true,
"rule": "-",
"ruleSpaces": false,
"ruleRepetition": 70,
"emphasis": "*",
"listItemIndent": "1",
"incrementListMarker": false,
"spacedTable": false
}
}
50 changes: 50 additions & 0 deletions .spelling
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
B.V.
Dealerdirect
sublicense

- ./.github/ISSUE_TEMPLATE.md
behaviour

- ./.github/PULL_REQUEST_TEMPLATE.md
GitHub

- ./CONTRIBUTING.md
dealerdirect.nl.
http
opensource
sexualized

- ./README.md
_CodeBrowser
_CodeCoverage
_CodeSniffer
_Depend
_eyes
ApiGen
Behat
codebase
Codeception
Deployer
devops
frontend
Githooks
Goutte
GrumPHP
https
Linters
metapackage
Nijhof
ParaTest
Phing
PHPCompatibility
phpcov
phpDocumentor
phpDox
PhpMetrics
PHPUnit
Sami
Selenium2
SensioLabs
versioning
WebDriver
workingatdealerdirect.eu
52 changes: 46 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,66 @@
---
language: php
dist: trusty
sudo: required

php:
- 7.1
- 7.0
- 5.6

env:
global:
- PATH="${HOME}/bin:${PATH}"
- SHELLCHECK_URL="https://s3.amazonaws.com/travis-blue-public/binaries/ubuntu/14.04/x86_64/shellcheck-0.4.5.tar.bz2"

cache:
directories:
- "${HOME}/bin"
- "${HOME}/.composer/cache/files"
- "${HOME}/.npm"
- "${HOME}/.yarn-cache"

before_install:
- gpg --keyserver hkp://keys.gnupg.net --recv-keys C4133165DF5EB4BAEABDADCACF1E7823C5339B59
- npm set loglevel error
- npm set progress false

install:
- pip install yamllint
- if ! shellcheck --version ; then
curl -sSL "${SHELLCHECK_URL}" | tar --exclude 'SHA256SUMS' --strip-components=1 -C "${HOME}/bin" -xjf -;
fi
- shellcheck --version
- npm install -g yarn
- npm install -g jsonlint

script:
- composer self-update || true
- find . -type f -name "*.yml" -print0 | xargs -0 -n1 yamllint
- find . -type f -name "*.json" -print0 | xargs -0 -n1 jsonlint -q
- gpg --verify ./bin/install.sh.sig
- shellcheck ./bin/install.sh
- composer validate
- composer install
- composer install --no-progress --no-suggest
- yarn install --no-progress
- yarn run test
- ./vendor/bin/behat --version
- ./vendor/bin/codecept --version
- ./vendor/bin/composer -V
- ./vendor/bin/dep -V
- ./vendor/bin/grumphp --version
- ./vendor/bin/jsonlint -h
- ./vendor/bin/paratest --version
- ./vendor/bin/php-cs-fixer --version
- ./vendor/bin/parallel-lint -h
- ./vendor/bin/phpcs --version
- ./vendor/bin/paratest --version
- ./vendor/bin/pdepend --version
- ./vendor/bin/phing -v
- ./vendor/bin/php-cs-fixer --version
- ./vendor/bin/phpcbf --version
- ./vendor/bin/phpcpd --version
- ./vendor/bin/phpcs --version
- ./vendor/bin/phploc --version
- ./vendor/bin/phpmetrics --version
- ./vendor/bin/phpmd --version
- ./vendor/bin/phpmetrics --version
- ./vendor/bin/phpunit --version
- ./vendor/bin/security-checker --version
- ./vendor/bin/tombstone --version
- ./vendor/bin/security-checker security:check composer.lock
60 changes: 60 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
rules:
braces:
level: error
min-spaces-inside: 0
max-spaces-inside: 1
brackets:
level: error
min-spaces-inside: 0
max-spaces-inside: 0
colons:
level: error
max-spaces-before: 0
max-spaces-after: 1
commas:
level: error
max-spaces-before: 0
min-spaces-after: 1
max-spaces-after: 1
comments:
level: error
require-starting-space: true
min-spaces-from-content: 2
comments-indentation:
level: error
document-end:
level: error
present: false
document-start:
level: error
present: true
empty-lines:
level: error
max: 1
max-start: 0
max-end: 1
hyphens:
level: error
max-spaces-after: 1
indentation:
level: error
spaces: 2
indent-sequences: true
check-multi-line-strings: false
key-duplicates:
level: error
line-length:
level: warning
max: 120
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
new-line-at-end-of-file:
level: error
new-lines:
level: error
type: unix
trailing-spaces:
level: error
truthy:
level: error
67 changes: 34 additions & 33 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
# Contributing

When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.
When contributing to this repository, please first discuss the change you wish
to make via issue, email, or any other method with the owners of this repository
before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.
Please note we have a code of conduct, please follow it in all your interactions
with the project.

## Found an issue? Want a Feature?

You've found a bug in the source code, a mistake in the documentation or maybe you'd like a new feature? You can help us by submitting an issue to our [GitHub Repository]. Before you create an issue, make sure you search the archive, maybe your question was already answered.
## Issues and feature requests

You've found a bug in the source code, a mistake in the documentation or maybe
you'd like a new feature? You can help us by submitting an issue to our
[GitHub Repository][github]. Before you create an issue, make sure you search
the archive, maybe your question was already answered.

Even better: You could submit a pull request with a fix / new feature!

[GitHub Repository]: https://github.com/dealerdirect/php-qa-tools/issues

## Pull Request Process
## Pull request process

1. Search our repository for open or closed [Pull Requests] that relates to your submission.
You don't want to duplicate effort.
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
do not have permission to do that, you may request the second reviewer to merge it for you.
1. Search our repository for open or closed [pull requests][prs] that relates
to your submission. You don't want to duplicate effort.

[Pull Requests]: https://github.com/dealerdirect/php-qa-tools/pulls
2. You may merge the pull request in once you have the sign-off of two other
developers, or if you do not have permission to do that, you may request
the second reviewer to merge it for you.

## Code of Conduct
## Code of conduct

### Our Pledge
### Our pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
Expand All @@ -34,29 +36,26 @@ size, disability, ethnicity, gender identity and expression, level of experience
nationality, personal appearance, race, religion, or sexual identity and
orientation.

### Our Standards
### Our standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

### Our Responsibilities
### Our responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
Expand Down Expand Up @@ -92,8 +91,10 @@ members of the project's leadership.

### Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
[github]: https://github.com/dealerdirect/php-qa-tools/issues
[prs]: https://github.com/dealerdirect/php-qa-tools/pulls
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016 Dealerdirect B.V.
Copyright (c) 2016-2017 Dealerdirect B.V.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading