Skip to content

Commit 5660311

Browse files
committed
Add CI improvements
1 parent bcb5b3e commit 5660311

File tree

4 files changed

+59
-0
lines changed

4 files changed

+59
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at https://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_size = 4
9+
indent_style = space
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test and documentation with "export-ignore".
5+
/.editorconfig export-ignore
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore
8+
/.styleci.yml export-ignore
9+
/.scrutinizer.yml export-ignore
10+
/.travis.yml export-ignore
11+
/phpunit.xml.dist export-ignore
12+
/tests export-ignore

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: laravel

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
sudo: required
2+
3+
language: php
4+
5+
php:
6+
- 5.4
7+
- 5.5
8+
- 5.6
9+
- 7.0
10+
- 7.1
11+
- 7.2
12+
- 7.3
13+
- 7.4
14+
15+
env:
16+
matrix:
17+
- COMPOSER_FLAGS="--prefer-lowest"
18+
- COMPOSER_FLAGS=""
19+
20+
before_install:
21+
- travis_retry composer self-update
22+
23+
install:
24+
- travis_retry composer update --prefer-source $COMPOSER_FLAGS
25+
26+
script:
27+
- phpunit
28+
29+
branches:
30+
only:
31+
- master

0 commit comments

Comments
 (0)