Last active
June 2, 2019 11:05
-
-
Save christianb93/e14252a122d081a219b84a905a40543f to your computer and use it in GitHub Desktop.
Local compile of a Travis CI file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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