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










share|improve this question









New contributor




Quentin Geeraert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • 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















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










share|improve this question









New contributor




Quentin Geeraert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • 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













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










share|improve this question









New contributor




Quentin Geeraert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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






share|improve this question









New contributor




Quentin Geeraert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Quentin Geeraert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 4 at 18:48





















New contributor




Quentin Geeraert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 4 at 10:12









Quentin Geeraert

34




34




New contributor




Quentin Geeraert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Quentin Geeraert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Quentin Geeraert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • 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


















  • 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
















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












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.






share|improve this answer





















  • 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











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Quentin Geeraert is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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
































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.






share|improve this answer





















  • 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















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.






share|improve this answer





















  • 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













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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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










Quentin Geeraert is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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.















 


draft saved


draft discarded














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




















































































這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()