Skip to content
This repository has been archived by the owner on Jun 25, 2018. It is now read-only.

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
romainnorberg committed Apr 8, 2017
1 parent 7bbb537 commit 4b59fb2
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ before_script:
- ./app/config/setup/setup.sh

script:
- ./vendor/phpunit/phpunit/phpunit --coverage-clover=tests/coverage/coverage.xml
- ./vendor/phpunit/phpunit/phpunit

after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Open source client website based on Symfony 3.x
### Status
[![Build Status](https://travis-ci.org/romainnorberg/construct-tim.svg?branch=master)](https://travis-ci.org/romainnorberg/construct-tim)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/b175d406-8e1f-4c4c-9c3c-c86ad271e319/mini.png)](https://insight.sensiolabs.com/projects/b175d406-8e1f-4c4c-9c3c-c86ad271e319)
[![codecov](https://codecov.io/gh/romainnorberg/construct-tim/branch/master/graph/badge.svg)](https://codecov.io/gh/romainnorberg/construct-tim)


### Env vars

Expand All @@ -30,7 +32,3 @@ Optional:
- cp tests/pre-commit-dist .git/hooks/pre-commit
- chmod a+x .git/hooks/pre-commit

### Performance

- composer dump-autoload --optimize
-
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
addUncoveredFilesFromWhitelist="true"
processUncoveredFilesFromWhitelist="true">

<directory suffix="Test.php">./tests</directory>
<directory suffix="Test.php">./src/AppBundle</directory>
</whitelist>
</filter>

Expand All @@ -29,7 +29,7 @@

<testsuites>
<testsuite name="Unit Tests">
<directory suffix="Test.php">./tests</directory>
<directory suffix="Test.php">./src/AppBundle</directory>
</testsuite>
</testsuites>

Expand Down
2 changes: 1 addition & 1 deletion src/AppBundle/Controller/ProjectTypeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* project controller.
*
* @Route("/projects")
* @Route("/projets")
*/

class ProjectTypeController extends Controller
Expand Down
4 changes: 2 additions & 2 deletions tests/pre-commit-dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

exec < /dev/tty
sudo phpunit
./vendor/phpunit/phpunit/phpunit
#Get the last processes exit code
rc=$?
if [[ $rc != 0 ]] ; then
Expand All @@ -12,7 +12,7 @@ if [[ $rc != 0 ]] ; then
elif [ "$YN" != "y" ]; then
exit $rc;
fi
sudo phpunit --verbose
./vendor/phpunit/phpunit/phpunit --verbose
fi

exit $rc;

0 comments on commit 4b59fb2

Please sign in to comment.