Skip to content

Commit

Permalink
Merge pull request umpirsky#3 from kiy0taka/eccube
Browse files Browse the repository at this point in the history
Travis上でビルド&リリースするように修正
  • Loading branch information
kiy0taka authored Feb 28, 2017
2 parents fc6dba7 + 4a17558 commit c2200a8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/bin/
!/bin/eccube-upgrade-fixer
/build/
/phpunit.xml
/vendor/
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,19 @@ before_script:

script:
- phpunit

before_deploy:
- |
if [[ $TRAVIS_PHP_VERSION = '7.0' ]]; then
composer require --dev kherge/box
vendor/bin/box build
fi
deploy:
provider: releases
api_key:
secure: uNHM83Gyoiuw5GdarcwDIxKWUjRWWi7IfUngjdQROFizNlsrO756ERUpHh3MmeZGJaKIZRegNw9OtMTjT5MZfTwV9aqygXYKwJjOGSaiNzIXpCjWGyJ6q0hQ92QgPqfNGFbdNqSFUqbY9EdZ7bnS0e4gyHAJAIIQ+GiVk/4ktJp+kmfNv6/E2NJXeQV1BcGqvPa5fAKouw3xFbSKseNNtVLjFAocNMBZfVVJfL4HyYVhCoxkx3gtaqRRf4B+Auk5Uu5AOWNLNNFXVeNvy+06gtdb7KBK+8E6fEIa3dhvqJlFv2bB7Byv1LpCIPlsLn8E+lXxu4goACMMFgQ1MVpl0H6ykHcGx/ZhslDzztIXNLB8DwINBHCnUyIxADMM8msWpNoo5NWD2+gX3eDVx48KUQzUcYmjY+Wh1Isyr2W9mF/a2mkCkF3FG1mHmhxFCIPRop9rcD6pX1+g91E5AgC4wYCNHp/kA2ZH+4m1msXbCkex9SJsEART3Kp4f+3OW8A4hGKL9USS1ZQ+E4aqLhzEiq84+IKwmBnYZpNs4Q2OvT1BPM8IB50gzK4IEr7bG58trkvadAE/kN34Y14jLFbz3X9AFDBcWDy6sTUdOnRofjzSNRBgQZB3EDuZR3cBcSMKw49Fpv2jPdHLDn+aXUgXy85OzpeGvEEEKBiHyKi9B64=
file_glob: true
file: build/*.phar
skip_cleanup: true
on:
tags: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ EC-CUBE3.0系のプラグインプロジェクトを解析して、EC-CUBE3.1系
以下のコマンドで簡単に``eccube-upgrade-fixer``コマンドをインストールできます。

```bash
$ sudo wget https://github.com/EC-CUBE/Eccube-Upgrade-Fixer/releases/download/v0.1.4/eccube-upgrade-fixer.phar -O /usr/local/bin/eccube-upgrade-fixer
$ sudo wget https://github.com/EC-CUBE/Eccube-Upgrade-Fixer/releases/download/v0.1.5-eccube-3.1.0-alpha/eccube-upgrade-fixer.phar -O /usr/local/bin/eccube-upgrade-fixer
$ sudo chmod a+x /usr/local/bin/eccube-upgrade-fixer
```
インストールしたら、``eccube-upgrade-fixer``コマンドが使用できます。
Expand Down
20 changes: 20 additions & 0 deletions bin/eccube-upgrade-fixer
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env php
<?php

if (defined('HHVM_VERSION_ID')) {
if (HHVM_VERSION_ID < 30500) {
fwrite(STDERR, "HHVM needs to be a minimum version of HHVM 3.5.0\n");
exit(1);
}
} elseif (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50400) {
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.4.0\n");
exit(1);
}

if (file_exists($a = __DIR__.'/../../../autoload.php')) {
require_once $a;
} else {
require_once __DIR__.'/../vendor/autoload.php';
}

(new Symfony\Upgrade\Console\Application())->run();
2 changes: 1 addition & 1 deletion src/Symfony/Upgrade/Fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class Fixer
{
const VERSION = '0.1.4';
const VERSION = '0.1.5-eccube-3.1.0-alpha';

private $fixers = [];
private $finder;
Expand Down

0 comments on commit c2200a8

Please sign in to comment.