Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit a8873be

Browse files
author
Etienne Lamoureux
committed
Added additional project structural elements
1 parent 3549e2c commit a8873be

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- hhvm
8+
9+
install:
10+
- composer require satooshi/php-coveralls:~0.6@stable
11+
12+
before_script:
13+
- composer self-update
14+
- composer install --prefer-source --no-interaction --dev
15+
- mkdir -p build/logs
16+
17+
script:
18+
- phpunit --coverage-clover build/logs/clover.xml
19+
20+
after_success:
21+
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'

composer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "crystalgorithm/php-json-iterator",
3+
"description": "PHP package to consume the GW2 API",
4+
"keywords": ["php", "json", "iterator"],
5+
"homepage": "https://github.com/EtienneLamoureux/php-json-iterator",
6+
"license": "BSD-3-Clause",
7+
"authors": [
8+
{
9+
"name": "Etienne Lamoureux",
10+
"email": "etienne.lamoureux@crystalgorithm.com",
11+
"homepage": "http://www.crystalgorithm.com",
12+
"role": "Developer"
13+
}
14+
],
15+
"require": {
16+
},
17+
"require-dev": {
18+
"phpunit/phpunit": "~4.2",
19+
"mockery/mockery": "~0.9"
20+
},
21+
"autoload": {
22+
"psr-4": {
23+
"Crystalgorithm\\DurmandScriptorium\\": "src/"
24+
}
25+
},
26+
"extra": {
27+
"branch-alias": {
28+
"dev-master": "0.1.x-dev"
29+
}
30+
}
31+
}

phpunit.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false"
12+
>
13+
<filter>
14+
<whitelist processUncoveredFilesFromWhitelist="true">
15+
<directory suffix=".php">./src</directory>
16+
</whitelist>
17+
</filter>
18+
<testsuites>
19+
<testsuite name="PHP JSON Iterator test suite">
20+
<directory suffix=".php">./tests/</directory>
21+
</testsuite>
22+
</testsuites>
23+
</phpunit>

0 commit comments

Comments
 (0)