Skip to content

Commit

Permalink
Try unit tests for dusk (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jun 19, 2018
1 parent 73d5d35 commit 0de478f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .env.travisci
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# the follow are for accessing the test database via the IXP Manager UI on
# barryo's development platform:
APP_KEY="base64:8QNjg1qPkdRSRntnjpKbfBpfUtENOu40WQtxHJWdTXs="
APP_URL="http://ixp-ibn.ldev"
APP_URL="http://127.0.0.1:8000"

APP_ENV="development"
APP_DEBUG=true
Expand All @@ -26,3 +26,5 @@ GRAPHER_BACKEND_MRTG_LOGDIR="/tmp"
#GRAPHER_ACCESS_IXP=1


IXP_API_JSONEXPORTSCHEMA_PUBLIC=true

9 changes: 7 additions & 2 deletions data/travis-ci/setup_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ cp .env.travisci .env
sudo cp data/travis-ci/configs/* application/configs
sudo touch public/.htaccess

echo composer install
composer install
echo composer install --no-interaction --prefer-dist --no-suggest
composer install --no-interaction --prefer-dist --no-suggest

mysql -e "CREATE DATABASE myapp_test CHARACTER SET = 'utf8mb4' COLLATE = 'utf8mb4_unicode_ci';"
bzcat data/travis-ci/travis_ci_test_db.sql.bz2 | mysql --default-character-set=utf8mb4 -h 127.0.0.1 -u travis myapp_test


echo google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost
google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &


./artisan serve &>php-built-in.log &

0 comments on commit 0de478f

Please sign in to comment.