Skip to content

Commit

Permalink
PHPUnit の環境変数を test に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Nov 28, 2019
1 parent 3e97e6c commit 71aefe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ before_install: &php_setup |
echo "date.timezone=Asia/Tokyo" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini

eccube_setup: &eccube_setup |
echo "APP_ENV=codeception" > .env
bin/console doctrine:database:create --env=dev
bin/console doctrine:schema:create --env=dev
bin/console eccube:fixtures:load --env=dev
Expand All @@ -61,6 +60,7 @@ package_api_setup: &package_api_setup |

install:
- &composer_install composer install --dev --no-interaction -o --apcu-autoloader
- echo "APP_ENV=test" > .env
- *eccube_setup

script:
Expand Down Expand Up @@ -104,6 +104,7 @@ jobs:
- docker run -d -p 1080:1080 -p 1025:1025 --name mailcatcher schickling/mailcatcher
install:
- *composer_install
- echo "APP_ENV=codeception" > .env
- *eccube_setup
php: 7.3
env: GROUP=admin01 APP_ENV=codeception DATABASE_URL=postgres://postgres:password@localhost/eccube_db DATABASE_SERVER_VERSION=9 MAILER_URL=smtp://localhost:1025
Expand Down

0 comments on commit 71aefe5

Please sign in to comment.