Skip to content

Commit f586f1a

Browse files
committed
Add config and travis files
1 parent 43feb68 commit f586f1a

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
end_of_line = lf
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 4
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Define the line ending behavior of the different file extensions
2+
# Set default behaviour, in case users don't have core.autocrlf set.
3+
* text=auto
4+
* text eol=lf

.travis.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
8+
sudo: false
9+
10+
env:
11+
matrix:
12+
- DB=sqlite db_dsn='sqlite:///:memory:'
13+
global:
14+
- DEFAULT=1
15+
16+
matrix:
17+
allow_failures:
18+
- php: hhvm
19+
- php: hhvm-nightly
20+
21+
fast_finish: true
22+
23+
include:
24+
- php: 5.4
25+
env: PHPCS=1 DEFAULT=0
26+
27+
- php: hhvm
28+
env: HHVM=1 DB=sqlite db_dsn='sqlite:///:memory:'
29+
30+
- php: hhvm-nightly
31+
env: HHVM=1 DB=mysql db_dsn='mysql://[email protected]/cakephp_test'
32+
33+
before_script:
34+
- composer self-update
35+
- composer install --prefer-source --no-interaction --dev
36+
37+
- sh -c "if [ '$PHPCS' = '1' ]; then composer require squizlabs/php_codesniffer; fi"
38+
39+
- phpenv rehash
40+
- set +H
41+
- cp phpunit.xml.dist phpunit.xml
42+
43+
script:
44+
- sh -c "if [ '$DEFAULT' = '1' ]; then phpunit --stderr; fi"
45+
- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=psr2 --ignore=tests/bootstrap.php ./src ./tests ; fi"
46+
47+
notifications:
48+
email: false

0 commit comments

Comments
 (0)