Last active
January 31, 2016 12:03
-
-
Save igara/77574c00c9526ca58a48 to your computer and use it in GitHub Desktop.
PHPプロジェクトでいろいろなCIサービスを使ってみたというお話 ref: http://qiita.com/igara/items/b0df734e8e7b1d75f4c0
This file contains hidden or 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
| coverage_clover: build/logs/clover.xml | |
| json_path: build/logs/coveralls-upload.json | |
| service_name: travis-ci | |
| exclude_no_stmt: true | |
This file contains hidden or 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
| composer require satooshi/php-coveralls --dev |
This file contains hidden or 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
| coverage_clover: build/logs/clover.xml | |
| json_path: build/logs/coveralls-upload.json | |
| service_name: travis-ci | |
| exclude_no_stmt: true | |
This file contains hidden or 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
| language: php | |
| php: | |
| # 下記はビルド対象のPHPバージョン | |
| - 5.6 | |
| - 7.0 | |
| - hhvm | |
| - nightly | |
| before_script: | |
| # laravelの環境設定ファイルの作成 | |
| - cp -p .env.example .env | |
| # composerは30日毎にupdateすること責められる... | |
| - composer self-update | |
| - composer install | |
| - php artisan key:generate | |
| script: | |
| # PHPUnitを実行し、ガバレッジを取得する | |
| - mkdir -p build/logs | |
| - chmod -R 777 build/logs | |
| - vendor/bin/phpunit --coverage-clover build/logs/clover.xml | |
| after_success: | |
| # coverallsにカバレッジの反映をさせる | |
| - travis_retry php vendor/bin/coveralls -v | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment