Travis CI and Laravel Dusk
up vote
0
down vote
favorite
I have just added the tests with Laravel Dusk.
Everything works if I test on my pc. I thus set up a travis.yml file :
language: php
sudo: required
dist: trusty
php:
- 7.1
- 7.2
addons:
chrome: stable
services:
- mysql
install:
- cp .env.travis .env
- mysql -e 'create database homestead_test;'
- travis_retry composer self-update
- travis_retry composer install --no-interaction
- php artisan key:generate
- php artisan migrate:fresh --seed
before_script:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- php artisan serve &
script:
- php artisan code:analyse --level=7
- php artisan dusk
- vendor/bin/phpunit
notifications:
email: false
However, when I push on Github I obtains errors : show travis errors
I does not understand to make how so that my tests work on travis.
Would anybody know how to help me on this point? Best Regards, Quentin
Update :
The exact commit on github
laravel travis-ci laravel-dusk
New contributor
add a comment |
up vote
0
down vote
favorite
I have just added the tests with Laravel Dusk.
Everything works if I test on my pc. I thus set up a travis.yml file :
language: php
sudo: required
dist: trusty
php:
- 7.1
- 7.2
addons:
chrome: stable
services:
- mysql
install:
- cp .env.travis .env
- mysql -e 'create database homestead_test;'
- travis_retry composer self-update
- travis_retry composer install --no-interaction
- php artisan key:generate
- php artisan migrate:fresh --seed
before_script:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- php artisan serve &
script:
- php artisan code:analyse --level=7
- php artisan dusk
- vendor/bin/phpunit
notifications:
email: false
However, when I push on Github I obtains errors : show travis errors
I does not understand to make how so that my tests work on travis.
Would anybody know how to help me on this point? Best Regards, Quentin
Update :
The exact commit on github
laravel travis-ci laravel-dusk
New contributor
PutAPP_URL=http://127.0.0.1:8000
in your.env.travis
file.
– Jonas Staudenmeir
Nov 4 at 14:57
In my .env.travis i have already APP_URL like this .env.travis
– Quentin Geeraert
Nov 4 at 15:05
Why is that commit not in any of the branches?
– Jonas Staudenmeir
Nov 4 at 15:17
I had temporarily remove the branch because there was too much Travis trial on. Now you can see my files here
– Quentin Geeraert
Nov 4 at 15:35
I changed the post to specify the build travis and commit
– Quentin Geeraert
Nov 4 at 18:51
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have just added the tests with Laravel Dusk.
Everything works if I test on my pc. I thus set up a travis.yml file :
language: php
sudo: required
dist: trusty
php:
- 7.1
- 7.2
addons:
chrome: stable
services:
- mysql
install:
- cp .env.travis .env
- mysql -e 'create database homestead_test;'
- travis_retry composer self-update
- travis_retry composer install --no-interaction
- php artisan key:generate
- php artisan migrate:fresh --seed
before_script:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- php artisan serve &
script:
- php artisan code:analyse --level=7
- php artisan dusk
- vendor/bin/phpunit
notifications:
email: false
However, when I push on Github I obtains errors : show travis errors
I does not understand to make how so that my tests work on travis.
Would anybody know how to help me on this point? Best Regards, Quentin
Update :
The exact commit on github
laravel travis-ci laravel-dusk
New contributor
I have just added the tests with Laravel Dusk.
Everything works if I test on my pc. I thus set up a travis.yml file :
language: php
sudo: required
dist: trusty
php:
- 7.1
- 7.2
addons:
chrome: stable
services:
- mysql
install:
- cp .env.travis .env
- mysql -e 'create database homestead_test;'
- travis_retry composer self-update
- travis_retry composer install --no-interaction
- php artisan key:generate
- php artisan migrate:fresh --seed
before_script:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- php artisan serve &
script:
- php artisan code:analyse --level=7
- php artisan dusk
- vendor/bin/phpunit
notifications:
email: false
However, when I push on Github I obtains errors : show travis errors
I does not understand to make how so that my tests work on travis.
Would anybody know how to help me on this point? Best Regards, Quentin
Update :
The exact commit on github
laravel travis-ci laravel-dusk
laravel travis-ci laravel-dusk
New contributor
New contributor
edited Nov 4 at 18:48
New contributor
asked Nov 4 at 10:12
Quentin Geeraert
34
34
New contributor
New contributor
PutAPP_URL=http://127.0.0.1:8000
in your.env.travis
file.
– Jonas Staudenmeir
Nov 4 at 14:57
In my .env.travis i have already APP_URL like this .env.travis
– Quentin Geeraert
Nov 4 at 15:05
Why is that commit not in any of the branches?
– Jonas Staudenmeir
Nov 4 at 15:17
I had temporarily remove the branch because there was too much Travis trial on. Now you can see my files here
– Quentin Geeraert
Nov 4 at 15:35
I changed the post to specify the build travis and commit
– Quentin Geeraert
Nov 4 at 18:51
add a comment |
PutAPP_URL=http://127.0.0.1:8000
in your.env.travis
file.
– Jonas Staudenmeir
Nov 4 at 14:57
In my .env.travis i have already APP_URL like this .env.travis
– Quentin Geeraert
Nov 4 at 15:05
Why is that commit not in any of the branches?
– Jonas Staudenmeir
Nov 4 at 15:17
I had temporarily remove the branch because there was too much Travis trial on. Now you can see my files here
– Quentin Geeraert
Nov 4 at 15:35
I changed the post to specify the build travis and commit
– Quentin Geeraert
Nov 4 at 18:51
Put
APP_URL=http://127.0.0.1:8000
in your .env.travis
file.– Jonas Staudenmeir
Nov 4 at 14:57
Put
APP_URL=http://127.0.0.1:8000
in your .env.travis
file.– Jonas Staudenmeir
Nov 4 at 14:57
In my .env.travis i have already APP_URL like this .env.travis
– Quentin Geeraert
Nov 4 at 15:05
In my .env.travis i have already APP_URL like this .env.travis
– Quentin Geeraert
Nov 4 at 15:05
Why is that commit not in any of the branches?
– Jonas Staudenmeir
Nov 4 at 15:17
Why is that commit not in any of the branches?
– Jonas Staudenmeir
Nov 4 at 15:17
I had temporarily remove the branch because there was too much Travis trial on. Now you can see my files here
– Quentin Geeraert
Nov 4 at 15:35
I had temporarily remove the branch because there was too much Travis trial on. Now you can see my files here
– Quentin Geeraert
Nov 4 at 15:35
I changed the post to specify the build travis and commit
– Quentin Geeraert
Nov 4 at 18:51
I changed the post to specify the build travis and commit
– Quentin Geeraert
Nov 4 at 18:51
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
The issue is SESSION_DRIVER=array
in your .env.travis
file, change it to SESSION_DRIVER=file
.
The login tests aren't working because the sessions vanish after each request.
I change SESSION_DRIVER=array to SESSION_DRIVER=file in my .env.travis and the result is that Thank you very much
– Quentin Geeraert
Nov 4 at 20:09
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
The issue is SESSION_DRIVER=array
in your .env.travis
file, change it to SESSION_DRIVER=file
.
The login tests aren't working because the sessions vanish after each request.
I change SESSION_DRIVER=array to SESSION_DRIVER=file in my .env.travis and the result is that Thank you very much
– Quentin Geeraert
Nov 4 at 20:09
add a comment |
up vote
0
down vote
accepted
The issue is SESSION_DRIVER=array
in your .env.travis
file, change it to SESSION_DRIVER=file
.
The login tests aren't working because the sessions vanish after each request.
I change SESSION_DRIVER=array to SESSION_DRIVER=file in my .env.travis and the result is that Thank you very much
– Quentin Geeraert
Nov 4 at 20:09
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
The issue is SESSION_DRIVER=array
in your .env.travis
file, change it to SESSION_DRIVER=file
.
The login tests aren't working because the sessions vanish after each request.
The issue is SESSION_DRIVER=array
in your .env.travis
file, change it to SESSION_DRIVER=file
.
The login tests aren't working because the sessions vanish after each request.
answered Nov 4 at 19:32
Jonas Staudenmeir
11.1k2932
11.1k2932
I change SESSION_DRIVER=array to SESSION_DRIVER=file in my .env.travis and the result is that Thank you very much
– Quentin Geeraert
Nov 4 at 20:09
add a comment |
I change SESSION_DRIVER=array to SESSION_DRIVER=file in my .env.travis and the result is that Thank you very much
– Quentin Geeraert
Nov 4 at 20:09
I change SESSION_DRIVER=array to SESSION_DRIVER=file in my .env.travis and the result is that Thank you very much
– Quentin Geeraert
Nov 4 at 20:09
I change SESSION_DRIVER=array to SESSION_DRIVER=file in my .env.travis and the result is that Thank you very much
– Quentin Geeraert
Nov 4 at 20:09
add a comment |
Quentin Geeraert is a new contributor. Be nice, and check out our Code of Conduct.
Quentin Geeraert is a new contributor. Be nice, and check out our Code of Conduct.
Quentin Geeraert is a new contributor. Be nice, and check out our Code of Conduct.
Quentin Geeraert is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53139683%2ftravis-ci-and-laravel-dusk%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Put
APP_URL=http://127.0.0.1:8000
in your.env.travis
file.– Jonas Staudenmeir
Nov 4 at 14:57
In my .env.travis i have already APP_URL like this .env.travis
– Quentin Geeraert
Nov 4 at 15:05
Why is that commit not in any of the branches?
– Jonas Staudenmeir
Nov 4 at 15:17
I had temporarily remove the branch because there was too much Travis trial on. Now you can see my files here
– Quentin Geeraert
Nov 4 at 15:35
I changed the post to specify the build travis and commit
– Quentin Geeraert
Nov 4 at 18:51