Skip to content

Commit 78e85cb

Browse files
committed
travis-ci tests
1 parent 72687b8 commit 78e85cb

23 files changed

+65
-77
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* text eol=lf
2+
*.serialized -text
3+
*.dat -text
4+
/tests export-ignore
5+
/stubs export-ignore
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore
8+
/.scrutinizer.yml export-ignore
9+
/.travis.yml export-ignore
10+
/phpunit.xml export-ignore

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
vendor
22
.idea
33
composer.lock
4-
cover.xml
4+
cover.xml
5+
build

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
language: php
2+
php:
3+
- nightly
4+
- hhvm
5+
- 7.0
6+
- 5.6
7+
- 5.5
8+
- 5.4
9+
- 5.3
10+
11+
sudo: false
12+
13+
## Cache composer bits
14+
cache:
15+
directories:
16+
- $HOME/.composer/cache
17+
18+
# execute any number of scripts before the test run, custom env's are available as variables
19+
before_script:
20+
- composer install --dev --no-interaction --prefer-dist
21+
22+
matrix:
23+
allow_failures:
24+
- php: hhvm
25+
- php: nightly
26+
fast_finish: true
27+
28+
script:
29+
- mkdir -p build/logs
30+
- ./vendor/bin/phpunit -v --configuration phpunit.xml --coverage-clover build/logs/clover.xml
31+
32+
after_script:
33+
- php vendor/bin/coveralls -v
34+
# - CODECLIMATE_REPO_TOKEN=bef21a7b3d0a531fec57b713df1720bb0da7114f5ce33a3e492ce9599b8ac8df ./vendor/bin/test-reporter

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# yaoi schema
2+
3+
JSON-schema inspired PHP versatile structures.

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"php": ">=5.3"
77
},
88
"require-dev": {
9-
"phpunit/phpunit": "^4.8.23",
10-
"phpunit/php-code-coverage": "^2.2.4",
11-
"ext-xdebug": ">=2.2.1"
9+
"phpunit/phpunit": "4.8.23",
10+
"phpunit/php-code-coverage": "2.2.4",
11+
"ext-xdebug": ">=2.2.1",
12+
"codeclimate/php-test-reporter": "0.1.2"
1213
},
1314
"license": "MIT",
1415
"authors": [

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
>
1414
<testsuites>
1515
<testsuite name="Yaoi PHP Schema Test Suite">
16-
<directory>./tests/PHPUnit/</directory>
16+
<directory>./tests/src/PHPUnit/</directory>
1717
</testsuite>
1818
</testsuites>
1919
<filter>

src/ArrayFlavour/UniqueItems.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/Enum.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Types/MultiType.php

Lines changed: 0 additions & 31 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)