Skip to content

Commit 5b4482f

Browse files
committed
Initial Release
0 parents  commit 5b4482f

13 files changed

+1122
-0
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.DS_Store
2+
._*
3+
.Spotlight-V100
4+
.Trashes
5+
Thumbs.db
6+
Desktop.ini
7+
.idea
8+
build/
9+
phpunit.xml
10+
composer.phar
11+
vendor
12+
*.settings
13+
*.project
14+
*.buildpath
15+
16+
/samples/results
17+
/phpunit.bat
18+
/todo.txt
19+
/samples/Sample_00_Test.php
20+
/samples/#47
21+
/samples/#70
22+
/samples/#71
23+
/samples/Github_*.*
24+
/samples/#83/*.lnk

.scrutinizer.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
filter:
2+
excluded_paths: [ 'vendor/*', 'tests/*', 'samples/*' ]
3+
4+
before_commands:
5+
- "composer install --prefer-source --dev"
6+
7+
tools:
8+
php_code_sniffer:
9+
enabled: true
10+
config:
11+
standard: PSR2
12+
php_mess_detector:
13+
enabled: true
14+
config:
15+
ruleset: phpmd.xml.dist
16+
external_code_coverage:
17+
enabled: true
18+
timeout: 900
19+
php_cpd: true
20+
# php_sim: # Temporarily disabled to allow focus on things other than duplicates
21+
# min_mass: 40
22+
php_pdepend: true
23+
php_analyzer: true
24+
sensiolabs_security_checker: true

.travis.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
- 5.6
8+
- 7.0
9+
- hhvm
10+
11+
matrix:
12+
allow_failures:
13+
- php: 7.0
14+
- php: hhvm
15+
16+
env:
17+
global:
18+
## - secure: "LtlUOzC8FtqgbqUTmU7EU281NSCb58UFdvnz8lelNIDltBdP4eayN/TsgNIePB4jXg2d2R56ZA6j/grhE/md6jdUkulV355H3GrH/hIZmmQ+F9+87agnwLzb9+MJbqXoiE7VvjY3zGIO09G897SUfsfu6JWEcscYFlsH6KcXM6M="
19+
20+
before_script:
21+
## Packages
22+
- sudo apt-get -qq update > /dev/null
23+
- sudo apt-get -qq install graphviz > /dev/null
24+
## Composer
25+
- composer self-update
26+
- composer install --prefer-source --dev
27+
## PHPDocumentor
28+
- mkdir -p build/docs
29+
- mkdir -p build/coverage
30+
31+
script:
32+
## PHP_CodeSniffer
33+
- ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n
34+
## PHP Copy/Paste Detector
35+
# - ./vendor/bin/phpcpd src/
36+
## PHP Mess Detector
37+
- ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist
38+
## PHPUnit
39+
- ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./build/coverage
40+
## PHPLOC
41+
- ./vendor/bin/phploc src/
42+
## PHPDocumentor
43+
- ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --template="responsive-twig"
44+
45+
after_script:
46+
## PHPDocumentor
47+
## - bash .travis_shell_after_success.sh
48+
## Scrutinizer
49+
- wget https://scrutinizer-ci.com/ocular.phar
50+
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
51+
52+
notifications:
53+
webhooks:
54+
urls:
55+
- https://webhooks.gitter.im/e/e019b92a7793d27e080c
56+
on_success: change # options: [always|never|change] default: always
57+
on_failure: always # options: [always|never|change] default: always
58+
on_start: false # default: false

.travis_shell_after_success.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
echo "--DEBUG--"
4+
echo "TRAVIS_REPO_SLUG: $TRAVIS_REPO_SLUG"
5+
echo "TRAVIS_PHP_VERSION: $TRAVIS_PHP_VERSION"
6+
echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST"
7+
8+
if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/Common" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then
9+
10+
echo -e "Publishing PHPDoc...\n"
11+
12+
cp -R build/docs $HOME/docs-latest
13+
cp -R build/coverage $HOME/coverage-latest
14+
15+
cd $HOME
16+
git config --global user.email "travis@travis-ci.org"
17+
git config --global user.name "travis-ci"
18+
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/PHPOffice/Common gh-pages > /dev/null
19+
20+
cd gh-pages
21+
echo "--DEBUG : Suppression"
22+
git rm -rf ./docs/$TRAVIS_BRANCH
23+
24+
echo "--DEBUG : Dossier"
25+
mkdir -p docs/$TRAVIS_BRANCH
26+
mkdir -p coverage/$TRAVIS_BRANCH
27+
28+
echo "--DEBUG : Copie"
29+
cp -Rf $HOME/docs-latest/* ./docs/$TRAVIS_BRANCH/
30+
cp -Rf $HOME/coverage-latest/* ./coverage/$TRAVIS_BRANCH/
31+
32+
echo "--DEBUG : Git"
33+
git add -f .
34+
git commit -m "PHPDocumentor (Travis Build: $TRAVIS_BUILD_NUMBER - Branch: $TRAVIS_BRANCH)"
35+
git push -fq origin gh-pages > /dev/null
36+
37+
echo -e "Published PHPDoc to gh-pages.\n"
38+
39+
fi

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
## 0.1.0 - NOT RELEASED
3+
4+
### Features
5+
- ...
6+
7+
### Bugfix
8+
- ...
9+
10+
### Miscellaneous
11+
- ...

0 commit comments

Comments
 (0)