-
-
Save chitoku-k/3ffbb55bb0bb9c24ebdc90ee7b2da72c to your computer and use it in GitHub Desktop.
cakephp2-plugin-test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
after_success: | |
- cd ../cakephp/app/Plugin/$PLUGIN_NAME | |
- mkdir -p build/logs | |
- mv ../../clover.xml build/logs | |
- travis_retry $TRAVIS_BUILD_DIR/vendor/bin/coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_script: | |
- git clone https://github.com/FriendsOfCake/travis.git --depth 1 ../travis | |
- ../travis/before_script.sh | |
- composer global remove "phpunit/phpunit" | |
- composer global require "phpunit/phpunit:<6.0.0" | |
- echo "require_once '$PWD/vendor/autoload.php';" >> ../cakephp/app/Config/bootstrap.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
global: | |
- PLUGIN_NAME=Lampager | |
- CODECOVERAGE=1 | |
- CAKE_REF=2.x | |
- DB=mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// モデルの LampagerPaginator クラスを読み込む例 | |
App::uses('LampagerPaginator', 'Lampager.Model'); | |
class LampagerPaginatorTest extends CakeTestCase | |
{ | |
public $fixtures = [ | |
// プラグインのフィクスチャーを参照する例 | |
'plugin.Lampager.Post', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment