Skip to content

Commit 5d29b83

Browse files
committed
🔧 Initial development environment setup
1 parent d8cbc49 commit 5d29b83

File tree

4 files changed

+94
-0
lines changed

4 files changed

+94
-0
lines changed

.gitattributes

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# Exclude these files from release archives.
3+
# This will also make them unavailable when using Composer with `--prefer-dist`.
4+
# If you develop for this repo using Composer, use `--prefer-source`.
5+
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production
6+
# https://blog.madewithlove.be/post/gitattributes/
7+
#
8+
/.gitattributes export-ignore
9+
/.gitignore export-ignore
10+
/.travis.yml export-ignore
11+
12+
#
13+
# Auto detect text files and perform LF normalization
14+
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
15+
#
16+
* text=auto
17+
18+
#
19+
# The above will handle all files NOT found below
20+
#
21+
*.md text
22+
*.php text
23+
*.inc text

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor/
2+
composer.lock

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
dist: trusty
2+
3+
language: php
4+
5+
## Cache composer and apt downloads.
6+
cache:
7+
directories:
8+
# Cache directory for older Composer versions.
9+
- $HOME/.composer/cache/files
10+
# Cache directory for more recent Composer versions.
11+
- $HOME/.cache/composer/files
12+
13+
php:
14+
- 5.4
15+
- 7.3
16+
17+
jobs:
18+
fast_finish: true
19+
20+
21+
before_install:
22+
# Speed up build time by disabling Xdebug when its not needed.
23+
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
24+
25+
# --prefer-dist will allow for optimal use of the travis caching ability.
26+
- composer install --prefer-dist --no-suggest
27+
28+
29+
script:
30+
# Validate the composer.json file on low/high PHP versions.
31+
# @link https://getcomposer.org/doc/03-cli.md#validate
32+
- composer validate --no-check-all --strict

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name" : "phpcsstandards/phpcsdevtools",
3+
"description" : "Tools for PHP_CodeSniffer sniff developers.",
4+
"type" : "phpcodesniffer-standard",
5+
"keywords" : [ "phpcs", "devtools", "php_codesniffer" ],
6+
"license" : "LGPL-3.0-or-later",
7+
"authors" : [
8+
{
9+
"name" : "Juliette Reinders Folmer",
10+
"role" : "lead",
11+
"homepage" : "https://github.com/jrfnl"
12+
},
13+
{
14+
"name" : "Contributors",
15+
"homepage" : "https://github.com/PHPCSStandards/PHPCSDevTools/graphs/contributors"
16+
}
17+
],
18+
"support" : {
19+
"issues" : "https://github.com/PHPCSStandards/PHPCSDevTools/issues",
20+
"source" : "https://github.com/PHPCSStandards/PHPCSDevTools"
21+
},
22+
"require" : {
23+
"php" : ">=5.4",
24+
"squizlabs/php_codesniffer" : "^3.0.2",
25+
"dealerdirect/phpcodesniffer-composer-installer" : "^0.5"
26+
},
27+
"require-dev" : {
28+
"roave/security-advisories" : "dev-master",
29+
"jakub-onderka/php-parallel-lint": "^1.0",
30+
"jakub-onderka/php-console-highlighter": "^0.4"
31+
},
32+
"scripts" : {
33+
"lint": [
34+
"@php ./vendor/jakub-onderka/php-parallel-lint/parallel-lint . -e php --exclude vendor"
35+
]
36+
}
37+
}

0 commit comments

Comments
 (0)