Skip to content

Instantly share code, notes, and snippets.

@christianb93
Last active June 2, 2019 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christianb93/e14252a122d081a219b84a905a40543f to your computer and use it in GitHub Desktop.
Save christianb93/e14252a122d081a219b84a905a40543f to your computer and use it in GitHub Desktop.
Local compile of a Travis CI file
# Base image is ruby
FROM ruby:2.6.3
# Create local directory
RUN mkdir /root/.travis
WORKDIR /root/.travis
# Clone Travis repository
RUN git clone --branch v10.0.0 --depth=1 https://github.com/travis-ci/travis-build
# Install bundler
RUN gem install bundler
# Install everything that we need from Gemfile
RUN bundle install --gemfile ~/.travis/travis-build/Gemfile
WORKDIR /root/.travis/travis-build
RUN bundler binstubs travis
# Run shell
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment