trigger Travis build

This commit is contained in:
Phan An 2020-04-18 12:58:21 +02:00
parent 4bba92008a
commit 4c6410c79c
5 changed files with 11 additions and 25 deletions

View file

@ -1,43 +1,24 @@
language: php
addons:
chrome: stable
php:
- 7.1
- 7.2
- 7.3
- 7.4
node_js:
- 10
branches:
- master
- fix/travis
install:
- composer self-update
- composer install --prefer-dist --no-interaction
- cd resources/assets && yarn
- cd ../.. && yarn && yarn production
script:
# Backend
- composer coverage
# Cypress
- yarn cy
- composer test-travis
cache:
directories:
- vendor/
addons:
code_climate:
repo_token: e74dc85a4eeb025a067bde238175f44d9f6a9e544278c4c096a46b8467c5fb9f
apt:
packages:
- libgconf-2-4
after_success:
- vendor/bin/test-reporter
- bash <(curl -s https://codecov.io/bash)

View file

@ -80,6 +80,7 @@
"@php artisan key:generate"
],
"test": "phpunit --colors=always --order-by=defects --stop-on-defect",
"test-travis": "phpunit tests/Integration/Services/LastfmServiceTest.php --colors=always --filter='testGetArtistInformation$'",
"coverage": "phpunit --colors=always --coverage-clover=coverage.xml",
"analyze": "phpstan analyse app --level=5",
"gen-api-docs": "@php artisan apidoc:generate"

4
composer.lock generated
View file

@ -1,7 +1,7 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "d5a9fdbd48600713ea57bdb9afc52118",
@ -4869,6 +4869,7 @@
"email": "jakub.onderka@gmail.com"
}
],
"abandoned": "php-parallel-lint/php-console-color",
"time": "2018-09-29T17:23:10+00:00"
},
{
@ -4915,6 +4916,7 @@
}
],
"description": "Highlight PHP code in terminal",
"abandoned": "php-parallel-lint/php-console-highlighter",
"time": "2018-09-29T18:48:56+00:00"
},
{

@ -1 +1 @@
Subproject commit c3a4c680b97b078ab19ae8dc27d4f53c1df93840
Subproject commit ed06031d3f6577899c9f036786c7481bf2050a5f

View file

@ -28,8 +28,10 @@ class LastfmServiceTest extends TestCase
'get' => new Response(200, [], file_get_contents(__DIR__.'../../../blobs/lastfm/artist.xml')),
]);
$api = new LastfmService($client, app(Cache::class), app(Logger::class));
$info = $api->getArtistInformation($artist->name);
$lastfmService = new LastfmService($client, app(Cache::class), app(Logger::class));
$info = $lastfmService->getArtistInformation($artist->name);
dump($info);
$this->assertEquals([
'url' => 'http://www.last.fm/music/Kamelot',