Skip to content

Commit

Permalink
DBPORT 追加, TOPページの確認方法修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Jan 30, 2020
1 parent f858225 commit 5b5ae16
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
26 changes: 13 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,42 +21,42 @@ env:
global:
- DBNAME=myapp_test DBSERVER=127.0.0.1 HTTP_URL=http://localhost:8085/ HTTPS_URL=http://localhost:8085/
matrix:
- DB=mysql USER=root DBPASS=' ' DBUSER=root
- DB=pgsql USER=postgres DBPASS=password DBUSER=postgres
- DB=pgsql USER=postgres DBPASS=password DBUSER=postgres COVERAGE=true # Use for coverage report
- DB=mysql USER=root DBPASS=' ' DBUSER=root DBPORT=3306
- DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DBPORT=5432
- DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DBPORT=5432 COVERAGE=true # Use for coverage report

matrix:
fast_finish: true
include:
- php: 5.4
dist: trusty
env: DB=mysql USER=root DBPASS=' ' DBUSER=root DIST=trusty
env: DB=mysql USER=root DBPASS=' ' DBUSER=root DBPORT=3306 DIST=trusty
- php: 5.4
dist: trusty
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DIST=trusty
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DBPORT=5432 DIST=trusty
- php: 5.5
dist: trusty
env: DB=mysql USER=root DBPASS=' ' DBUSER=root DIST=trusty
env: DB=mysql USER=root DBPASS=' ' DBUSER=root DBPORT=3306 DIST=trusty
- php: 5.5
dist: trusty
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DIST=trusty
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DBPORT=5432 DIST=trusty
exclude:
- php: 5.4
- php: 5.5
- php: 5.6
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres COVERAGE=true
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DBPORT=5432 COVERAGE=true
- php: 7.0
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres COVERAGE=true
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DBPORT=5432 COVERAGE=true
- php: 7.1
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres COVERAGE=true
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DBPORT=5432 COVERAGE=true
- php: 7.2
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres COVERAGE=true
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DBPORT=5432 COVERAGE=true
- php: 7.4
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres COVERAGE=true
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DBPORT=5432 COVERAGE=true
allow_failures:
# Use for coverage report
- php: 7.3
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres COVERAGE=true
env: DB=pgsql USER=postgres DBPASS=password DBUSER=postgres DBPORT=5432 COVERAGE=true

before_install:
- if [[ $DIST = 'trusty' ]]; then sudo apt-get -y install google-chrome-stable --allow-unauthenticated ; fi
Expand Down
11 changes: 6 additions & 5 deletions ctests/acceptance/InstallerCept.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
$I->click('次へ進む');

$I->see('データベースの初期化');
$I->dontSee('×:テーブルの作成に失敗しました。');
$I->waitForText('○:テーブルの作成に成功しました。', 60);
$I->waitForText('○:シーケンスの作成に成功しました。', 60);
$I->click('次へ進む');
Expand All @@ -78,16 +79,16 @@
$I->see('ログイン : 管理者 様');

$I->expect('TOPページを確認します');
$I->seeInCurrentUrl('/');
$I->click(['id' => 'logo']);
$I->see('インストール完了後に /install フォルダを削除してください。');

$I->expect('/install/index.php を削除します');
unlink(HTML_REALDIR.'install/'.DIR_INDEX_FILE);
$I->seeInCurrentUrl('/');
$install_dir = __DIR__.'/../../html/install';
unlink($install_dir.'/'.DIR_INDEX_FILE);
$I->click(['id' => 'logo']);
$I->see('インストール完了後に /install フォルダを削除してください。');

$I->expect('/install を削除します');
$install_dir = __DIR__.'/../../install';
$files = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($install_dir, FilesystemIterator::SKIP_DOTS),
RecursiveIteratorIterator::CHILD_FIRST
Expand All @@ -99,5 +100,5 @@
rmdir($install_dir);

$I->expect('/install が削除されていることを確認します');
$I->seeInCurrentUrl('/');
$I->click(['id' => 'logo']);
$I->dontSee('インストール完了後に /install フォルダを削除してください。');

0 comments on commit 5b5ae16

Please sign in to comment.