From e76eefff7b921da5ffa4552e27249914fdff0d35 Mon Sep 17 00:00:00 2001 From: Recca Tsai Date: Fri, 19 Feb 2016 21:41:09 +0800 Subject: [PATCH] response 304, load resources once --- .travis.yml | 33 ++--------------- resources/views/panel.blade.php | 32 +++++++++++------ src/Http/Controllers/TerminalController.php | 39 +++++++++++++++++---- 3 files changed, 57 insertions(+), 47 deletions(-) diff --git a/.travis.yml b/.travis.yml index 41ad5cd..8bbf6c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,35 +7,8 @@ php: - 7.0 - hhvm -env: - global: - - setup=basic - - coverage=no +sudo: false -before_script: - - travis_retry composer self-update - - composer config discard-changes true - - if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-source --no-interaction; fi - - if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-stable; fi - - if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-lowest --prefer-stable; fi - - if [[ $setup = 'coveralls' ]]; then travis_retry composer require "psr/log=1.0.0" "satooshi/php-coveralls=~0.6" "symfony/yaml=~2.0" --prefer-source --no-interaction --dev; fi +install: travis_retry composer install --no-interaction --prefer-source -script: - - if [[ $coverage = 'yes' ]]; then ./vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml; fi - - if [[ $coverage = 'no' ]]; then ./vendor/bin/phpunit -c phpunit.xml; fi - -after_script: - - if [[ $setup = 'coveralls' ]]; then php vendor/bin/coveralls -v; fi - -matrix: - include: - - php: 5.5 - env: setup=lowest - - php: 5.5 - env: setup=stable - - php: 5.5 - env: setup=coveralls coverage=yes - allow_failures: - - env: setup=stable - - env: setup=coveralls coverage=yes - fast_finish: true +script: vendor/bin/phpunit --verbose diff --git a/resources/views/panel.blade.php b/resources/views/panel.blade.php index 7b18f77..0346ff8 100644 --- a/resources/views/panel.blade.php +++ b/resources/views/panel.blade.php @@ -1,14 +1,18 @@
-