# How can I replicate the Travis CI build environment on my local machine?

**URL:** <https://travis-ci.community/t/how-can-i-replicate-the-travis-ci-build-environment-on-my-local-machine/2853>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [March 30, 2019, 7:42pm UTC](https://travis-ci.community/t/how-can-i-replicate-the-travis-ci-build-environment-on-my-local-machine/2853 "2019-03-30T19:42:36Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [April 4, 2019, 11:25pm UTC](https://travis-ci.community/t/how-can-i-replicate-the-travis-ci-build-environment-on-my-local-machine/2853/7 "2019-04-04T23:25:20Z")

</div>

Now, you _can_ replicate a build machine [by examining it from a build script, uploading custom stuff somewhere](https://travis-ci.community/t/linking-against-ncurses-no-package-from-chocolately-yet/1030/4?u=native-api) (I did that to diagnose problems with their stock scripts) and arranging non-custom stuff the same way.

Then you should be able to somehow use [https://github.com/travis-ci/travis-build](https://github.com/travis-ci/travis-build) to generate a job script from `.travis.yml` and run it in that replicated environment…

But if getting a project to build on a local machine is too hard for you, this will likely be too hard, too.

---

_[View the full topic](https://travis-ci.community/t/how-can-i-replicate-the-travis-ci-build-environment-on-my-local-machine/2853)._
