Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.