Providing Travis CI PHP VM (reliable, sudo required) locally

goal

I am trying to find the reason for the failure of the Laravel Dusk test on the Travis CI, so I am trying to reproduce the Travis CI environment used locally.

Customization

In my .travis.yml I have

 sudo: required dist: trusty 

since Laravel Dusk requires this .

This is why I am trying to reproduce the โ€œ full VM environment โ€ locally ( not ) based on Docker).

Current results

I found that Travis uses a chef to provide complete virtual machines or packer templates that end up wrapping herbal cookbooks?

Question

How can I provide "Travis full VM trusty sudo required" locally on Mac OS X?

+5
source share
2 answers

A response from Travis CI support claims that I cannot do what I want:

Regarding your question about the instructions for providing these images from OS X, unfortunately, this is not possible at the moment. so we have no further instructions for this


Theoretically, the following should be done: the travis_ci_sugilite Cookbook needs to be localized, the best starting point I could find is the Travis CI Readme Table Templates .

In my case, I could solve the failed build using the new debug job function .

+1
source

Try setting LD_LIBRARY_PATH, which is similar to PATH for libraries. For instance:

LD_LIBRARY_PATH = $ HOME / lib: $ LD_LIBRARY_PATH export LD_LIBRARY_PATH

For more information on library path variables, see here.

Environment variables that specifically affect how the configure script pass arguments for compilation are LIBS and LD_FLAGS. bash./configure --help mentions them.

And as you mentioned in the comments, LIBRARY_PATH also needs to be set. See LD_LIBRARY_PATH vs LIBRARY_PATH for an explanation of the difference.

-1
source

All Articles