Skip to content

Commit

Permalink
Add annotations (webmozarts#118)
Browse files Browse the repository at this point in the history
Big thanks to @Ocramius for his work on this
  • Loading branch information
BackEndTea authored Aug 24, 2019
1 parent 35207c6 commit caf232b
Show file tree
Hide file tree
Showing 33 changed files with 920 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/vendor/
vendor/
composer.lock
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ matrix:
- php: 7.1
- php: 7.2
- php: 7.3
env: COVERAGE=yes
env:
- COVERAGE=yes
- ANALYSIS=yes
- php: 7.4snapshot
- php: hhvm-3.30
- php: nightly
Expand All @@ -42,6 +44,8 @@ install:

script:
- if [[ $COVERAGE = yes ]]; then vendor/bin/phpunit --coverage-clover=coverage.clover; else vendor/bin/phpunit; fi
- if [[ $ANALYSIS = yes ]]; then composer i --working-dir=ci && ci/vendor/bin/psalm; fi


after_script:
- if [[ $COVERAGE = yes ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
5 changes: 5 additions & 0 deletions ci/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"vimeo/psalm": "^3.4"
}
}
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<testsuites>
<testsuite name="Webmozart Assert Test Suite">
<directory>./tests/</directory>
<exclude>./tests/static-analysis</exclude>
</testsuite>
</testsuites>

Expand Down
15 changes: 15 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<psalm
totallyTyped="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config ci/vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="tests/static-analysis" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>

</psalm>
Loading

0 comments on commit caf232b

Please sign in to comment.