File tree Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,19 @@ 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
+ - travis_retry composer self-update;
27
+ - travis_retry composer config --global github-protocols https;
28
+ - ' if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then travis_retry composer config http-basic.nova.laravel.com $NOVA_USERNAME $NOVA_PASSWORD; fi '
29
+ - travis_retry composer install --no-interaction --prefer-source;
30
30
- if php -v | grep -q 'Xdebug'; then phpenv config-rm xdebug.ini; fi
31
31
- pecl install pcov
32
32
- psql -c "CREATE DATABASE testing;" -U postgres
33
33
- psql -c "CREATE USER homestead WITH PASSWORD 'secret';" -U postgres
34
34
35
35
script :
36
36
- mkdir -p build/logs
37
- - php vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
37
+ - ' if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then php vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml --exclude-group nova; fi'
38
+ - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then php vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml; fi'
38
39
39
40
after_success :
40
41
- travis_retry php vendor/bin/php-coveralls -v
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