Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Provision Travis CI PHP VM (trusty, sudo required) locally

Tags:

travis-ci

Goal

I try to find the reason why a Laravel Dusk test fails on Travis CI, that is why I am trying to reproduce the used Travis CI environment locally.

Setting

In my .travis.yml I have

sudo: required
dist: trusty

since Laravel Dusk requires this.

This is why I am trying to reproduce a "full VM environment" locally (not a Docker based environment).

Current findings

I found out so far that Travis uses Chef to provision the full VMs or the packer templates, which eventually wrap the travis-cookbooks?

Question

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

like image 543
Paul Vincent Beigang Avatar asked Nov 18 '22 20:11

Paul Vincent Beigang


1 Answers

An answer from Travis CI support states that it is not possible to do what I want:

Regarding your question about instructions for provisioning these images from OS X, unfortunately, this is not possible at the moment being so we don't have further instructions for that


Theoretically the following must be done: The travis_ci_sugilite Cookbook needs to be provisoned locally, the best starting point I could find is the Travis CI Packer Templates Readme.


In my case I could solve the failing build by using the new debug job feature.

like image 124
Paul Vincent Beigang Avatar answered Nov 21 '22 09:11

Paul Vincent Beigang