Skip to content

Commit 718c0d7

Browse files
committed
Merge pull request #13 from PHPOffice/develop
Version 0.1.0
2 parents 2f0014b + cf9314d commit 718c0d7

File tree

91 files changed

+10468
-3178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+10468
-3178
lines changed

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
unitTests/codeCoverage
22

33
/.project
4-
/.buildpath
4+
/.buildpath
5+
/.settings
6+
/build/coverage
7+
/build/logs
8+
vendor
9+
/samples/results

.scrutinizer.yml

+24
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

+35-25
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,50 @@
11
language: php
2+
23
php:
3-
- 5.3.3
44
- 5.3
5+
- 5.3.3
56
- 5.4
67
- 5.5
8+
- 5.6
9+
- hhvm
10+
11+
matrix:
12+
allow_failures:
13+
- php: hhvm
14+
15+
env:
16+
global:
17+
- secure: "FEHYuvMQxf987C9CxTb5lrzwYP2qH/VWvUKipsJ8X1+k2VS8QVzG5mZcHfely4CrA/j1y8dBaYV3AJOSdmRIz12zWDDJkGe/dbGRcQcS1mIXK1pZVwLqb/1k98L8M7JWQZS0lW+7sztzCNFude3/rPEVKPBW53BW12A1P1IPZrc="
718

819
before_script:
20+
- java -version
21+
## Packages
22+
- sudo apt-get -qq update > /dev/null
23+
- sudo apt-get -qq install graphviz > /dev/null
924
## Composer
10-
- curl -s http://getcomposer.org/installer | php
11-
- php composer.phar install
12-
## PHP_CodeSniffer
13-
- pyrus install pear/PHP_CodeSniffer
14-
- phpenv rehash
15-
## PHP Copy/Paste Detector
16-
- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar
17-
## PHP Mess Detector
18-
- pear config-set preferred_state beta
19-
- printf "\n" | pecl install imagick
20-
- pear channel-discover pear.phpmd.org
21-
- pear channel-discover pear.pdepend.org
22-
- pear install --alldeps phpmd/PHP_PMD
23-
- phpenv rehash
24-
## PHPLOC
25-
- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
25+
- composer self-update
26+
- composer install --prefer-source --dev
27+
## PHPDocumentor
28+
- mkdir -p build/docs
29+
- mkdir -p build/coverage
2630

2731
script:
2832
## PHP_CodeSniffer
29-
- phpcs --standard=PSR1 Classes/
30-
- phpcs --standard=PSR2 Classes/
33+
- ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n
3134
## PHP Copy/Paste Detector
32-
- php phpcpd.phar --verbose Classes/
35+
# - ./vendor/bin/phpcpd src/
3336
## PHP Mess Detector
34-
- phpmd Classes/ text codesize,unusedcode,naming,design
37+
- ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist
38+
## PHPUnit
39+
- ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./build/coverage
3540
## PHPLOC
36-
- php phploc.phar Classes/
41+
- ./vendor/bin/phploc src/
42+
## PHPDocumentor
43+
- ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --template="responsive-twig"
3744

38-
notifications:
39-
email:
40-
- progi1984@gmail.com
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

.travis_shell_after_success.sh

+39
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/PHPProject" ] && [ "$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/PHPProject 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

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
## 0.1.0 - 2014-08-08
4+
5+
### Features
6+
- Support of Composer - @Progi1984 GH-7 GH-9
7+
- Support of namespaces - @Progi1984 GH-12
8+
- GanttProject Writer - @Progi1984 GH-1
9+
- GanttProject Reader - @Progi1984 GH-3
10+
11+
### Bugfix
12+
13+
### Miscellaneous
14+
- QA : Documentation - @Progi1984 GH-8 GH-12
15+
- QA : Unit Tests - @Progi1984 GH-12

0 commit comments

Comments
 (0)