-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run dusk in docker on travis ci (#49)
Trying to make Dusk work on Travis and Circle CI This is still not working and I have decided to leave it for now, as the Dusk tests all pass in my local (with Selenium), to concentrate on upgrading Laravel. But since I have done some useful changes, I would like to keep them and therefore merging them into master.
- Loading branch information
Showing
6 changed files
with
133 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ QUEUE_DRIVER=sync | |
|
||
MAIL_DRIVER=log | ||
|
||
FAKER_LOCALE=en_GB | ||
FAKER_LOCALE=en_GB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,46 @@ | ||
sudo: required | ||
dist: trusty | ||
branches: | ||
only: | ||
- master | ||
- dev | ||
notifications: | ||
email: | ||
on_success: always | ||
on_failure: always | ||
slack: | ||
rooms: | ||
- secure: c5WWnc0fqkQjUWd44/V0w2tBVP795zTYl6EuJlYcmzy4YhDOCXmxQmk51UjN4Eh/9GfFRdrMVH35pjY74AF4wG6agfw0Xy1lzT6WxsyU+STdKaC4p1p3qKnHH80jrokETcJ7QfVBU3sRW6f0auIWSakHd47v7+QcBpJKDDr1sCPgXQfXmbHHKfcPQqXnoUk5pD+EEcOQDGTM1OkskPJg8QYLwMEmSsCBNOE21AvV1mxw67HQTT4TteM8W4Wyffun1vk1rEq01NRr7cVC9ik79JX8YnxwWF29kRtfItoSFbc83MAoqO+fiOxKkvZRKXz0U+Offx/Ni7CP25oWcDVQ37tFafDXeAsi61TaNHt5rK5NXZkr6TidE4bBvEcsMQEz4FHYQrGliJWCe2fsuAgOhhzIhcSgQETbhc8g67TshqGS0agOhT9tTx8Yxmf3Y+g3hB6mkPKi8MpsoL7Dn++RXahimqUWuc37pylFrLU4Bi9lepNubWoh9mz0F1P98kfJp3Zk2DeK3vvWNp5UyA9M5uzpfQtS4VtY24w1rf4yaUTXBP0gbdIb1BJzKV6IutIZl2f2R7nM6WXHPfcVNlDcszSmAaeasfYUZ/XAoCprctSbGDqhMVyrfInvCLxtxEKBzl3teRJ3tC8mx51AE1BZf601EEX/yblgzq+xVUxzSoo= | ||
on_success: always | ||
on_failure: always | ||
|
||
services: | ||
- docker | ||
|
||
language: php | ||
|
||
php: | ||
- 7.1 | ||
- 7.3 | ||
|
||
#branches: | ||
# only: | ||
# - master | ||
# - dev | ||
|
||
install: | ||
- travis_retry composer install --no-progress --no-suggest --no-interaction --optimize-autoloader | ||
- npm install | ||
- npm rebuild node-sass | ||
- npm run production | ||
- docker-compose build | ||
|
||
before_script: | ||
- phpenv config-rm xdebug.ini | ||
- cp env.travis .env | ||
- cp .env.ci .env | ||
- cp .env .env.dusk.local | ||
- php artisan key:generate | ||
- touch database/database.sqlite | ||
- php artisan migrate | ||
|
||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- ./vendor/laravel/dusk/bin/chromedriver-linux & | ||
- php artisan serve > /dev/null 2>&1 & | ||
|
||
script: | ||
- vendor/bin/phpunit | ||
- php artisan dusk -vvv | ||
- docker-compose up -d | ||
- sleep 3 | ||
- docker exec -it app-web php artisan dusk --filter PingTest | ||
|
||
notifications: | ||
email: | ||
on_success: always | ||
on_failure: always | ||
slack: | ||
rooms: | ||
- secure: c5WWnc0fqkQjUWd44/V0w2tBVP795zTYl6EuJlYcmzy4YhDOCXmxQmk51UjN4Eh/9GfFRdrMVH35pjY74AF4wG6agfw0Xy1lzT6WxsyU+STdKaC4p1p3qKnHH80jrokETcJ7QfVBU3sRW6f0auIWSakHd47v7+QcBpJKDDr1sCPgXQfXmbHHKfcPQqXnoUk5pD+EEcOQDGTM1OkskPJg8QYLwMEmSsCBNOE21AvV1mxw67HQTT4TteM8W4Wyffun1vk1rEq01NRr7cVC9ik79JX8YnxwWF29kRtfItoSFbc83MAoqO+fiOxKkvZRKXz0U+Offx/Ni7CP25oWcDVQ37tFafDXeAsi61TaNHt5rK5NXZkr6TidE4bBvEcsMQEz4FHYQrGliJWCe2fsuAgOhhzIhcSgQETbhc8g67TshqGS0agOhT9tTx8Yxmf3Y+g3hB6mkPKi8MpsoL7Dn++RXahimqUWuc37pylFrLU4Bi9lepNubWoh9mz0F1P98kfJp3Zk2DeK3vvWNp5UyA9M5uzpfQtS4VtY24w1rf4yaUTXBP0gbdIb1BJzKV6IutIZl2f2R7nM6WXHPfcVNlDcszSmAaeasfYUZ/XAoCprctSbGDqhMVyrfInvCLxtxEKBzl3teRJ3tC8mx51AE1BZf601EEX/yblgzq+xVUxzSoo= | ||
on_success: always | ||
on_failure: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Tests\Browser; | ||
|
||
use Laravel\Dusk\Browser; | ||
use LVA\User; | ||
use Tests\Browser\Pages\HomePage; | ||
use Tests\DuskTestCase; | ||
|
||
class PingTest extends DuskTestCase | ||
{ | ||
public function testPing() | ||
{ | ||
$this->browse(function (Browser $browser) { | ||
$browser->visit('/') | ||
->assertSee('London Volleyball Association'); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters