Merge pull request #13003 from marcusmoore/chipper-config-updates

Disable browser tests in ChipperCI
This commit is contained in:
snipe 2023-05-16 17:26:09 -07:00 committed by GitHub
commit 5a1e6c8e29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,19 +41,18 @@ pipeline:
cmd: | cmd: |
# php artisan test --testsuite Feature # php artisan test --testsuite Feature
- name: Browser Tests # - name: Browser Tests
cmd: | # cmd: |
cp -v .env.dusk.example .env.dusk.ci # cp -v .env.dusk.example .env.dusk.ci
sed -i "s@APP_ENV=.*@APP_ENV=ci@g" .env.dusk.ci # sed -i "s@APP_ENV=.*@APP_ENV=ci@g" .env.dusk.ci
sed -i "s@APP_URL=.*@APP_URL=http://$BUILD_HOST:8000@g" .env.dusk.ci # sed -i "s@APP_URL=.*@APP_URL=http://$BUILD_HOST:8000@g" .env.dusk.ci
#sed -i "s@DB_HOST=.*@DB_HOST=mysql@g" .env.dusk.ci # #sed -i "s@DB_HOST=.*@DB_HOST=mysql@g" .env.dusk.ci
sed -i "s@DB_HOST=.*@DB_HOST=$DB_HOST@g" .env.dusk.ci # sed -i "s@DB_HOST=.*@DB_HOST=$DB_HOST@g" .env.dusk.ci
sed -i "s@DB_USERNAME=.*@DB_USERNAME=chipperci@g" .env.dusk.ci # sed -i "s@DB_USERNAME=.*@DB_USERNAME=chipperci@g" .env.dusk.ci
sed -i "s@DB_DATABASE=.*@DB_DATABASE=chipperci@g" .env.dusk.ci # sed -i "s@DB_DATABASE=.*@DB_DATABASE=chipperci@g" .env.dusk.ci
sed -i "s@DB_PASSWORD=.*@DB_PASSWORD=secret@g" .env.dusk.ci # sed -i "s@DB_PASSWORD=.*@DB_PASSWORD=secret@g" .env.dusk.ci
#
php -S [::0]:8000 -t public 2>server.log & # php -S [::0]:8000 -t public 2>server.log &
sleep 2 # sleep 2
php artisan dusk:chrome-driver $CHROME_DRIVER # php artisan dusk:chrome-driver $CHROME_DRIVER
php artisan dusk --env=ci # php artisan dusk --env=ci