File tree Expand file tree Collapse file tree 6 files changed +15
-10
lines changed Expand file tree Collapse file tree 6 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,20 @@ matrix:
23
23
- php : 7.4
24
24
25
25
before_script :
26
- - travis_retry composer self-update
27
- - travis_retry composer config --global github-protocols https
28
- - travis_retry composer config http-basic.nova.laravel.com $NOVA_USERNAME $NOVA_PASSWORD
29
- - travis_retry composer install --no-interaction --prefer-source
26
+ - if php -v | grep -q 'Xdebug'; then phpenv config-rm xdebug.ini; fi
27
+ - pecl install pcov
28
+ - travis_retry composer self-update;
29
+ - travis_retry composer config --global github-protocols https;
30
+ - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then travis_retry composer config http-basic.nova.laravel.com $NOVA_USERNAME $NOVA_PASSWORD; fi'
31
+ - ' if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then composer remove --dev laravel/nova --no-interaction --no-update; fi'
32
+ - travis_retry composer install --no-interaction --prefer-source;
30
33
- psql -c "CREATE DATABASE testing;" -U postgres
31
34
- psql -c "CREATE USER homestead WITH PASSWORD 'secret';" -U postgres
32
35
33
36
script :
34
37
- mkdir -p build/logs
35
- - php vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
38
+ - ' if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then php vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml --exclude-group nova; fi'
39
+ - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then php vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml; fi'
36
40
37
41
after_success :
38
42
- travis_retry php vendor/bin/php-coveralls -v
Original file line number Diff line number Diff line change 36
36
"phpunit/phpunit" : " ^8.0" ,
37
37
"sebastian/phpcpd" : " ^5.0" ,
38
38
"squizlabs/php_codesniffer" : " ^3.4" ,
39
- "symfony/thanks" : " ^1.2"
39
+ "symfony/thanks" : " ^1.2" ,
40
+ "doctrine/dbal" : " ^2.10"
40
41
},
41
42
"autoload" : {
42
43
"psr-4" : {
Original file line number Diff line number Diff line change 3
3
use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Book ;
4
4
use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Store ;
5
5
6
+ /** @group nova */
6
7
class BelongsToManyTest extends NovaTestCase
7
8
{
8
- /** @group test */
9
9
public function testAttachRelationFlushesCache ()
10
10
{
11
11
$ beforeStore = Store::with (['books ' ])->get ()->first ();
@@ -35,7 +35,6 @@ public function testAttachRelationFlushesCache()
35
35
$ this ->assertSame ('new foo ' , $ book ->title );
36
36
}
37
37
38
- /** @group test */
39
38
public function testDetachRelationFlushesCache ()
40
39
{
41
40
/** @var Store $store */
@@ -66,7 +65,6 @@ public function testDetachRelationFlushesCache()
66
65
$ this ->assertCount (1 , $ books );
67
66
}
68
67
69
- /** @group test */
70
68
public function testUpdateRelationFlushesCache ()
71
69
{
72
70
$ beforeStore = Store::with (['books ' ])->get ()->first ();
@@ -86,7 +84,6 @@ public function testUpdateRelationFlushesCache()
86
84
$ this ->assertSame ('foo ' , $ book ->title );
87
85
}
88
86
89
- /** @group test */
90
87
public function testDeleteRelationFlushesCache ()
91
88
{
92
89
$ beforeStore = Store::with (['books ' ])->get ()->first ();
Original file line number Diff line number Diff line change 2
2
3
3
use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Author ;
4
4
5
+ /** @group nova */
5
6
class CreateTest extends NovaTestCase
6
7
{
7
8
public function testCreateFlushesCacheForModel ()
Original file line number Diff line number Diff line change 2
2
3
3
use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Author ;
4
4
5
+ /** @group nova */
5
6
class DeleteTest extends NovaTestCase
6
7
{
7
8
public function testDeleteFlushesCacheForModel ()
Original file line number Diff line number Diff line change 2
2
3
3
use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Author ;
4
4
5
+ /** @group nova */
5
6
class UpdateTest extends NovaTestCase
6
7
{
7
8
public function testUpdateFlushesCacheForModel ()
You can’t perform that action at this time.
0 commit comments