Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Default values | ||
### $author // the project owner in github | ||
### $project // the name of the project in github | ||
### $branch // the branch to checkout | ||
ARG author=poanetwork | ||
ARG project=token-wizard | ||
ARG branch=master | ||
|
||
# Docker setup | ||
FROM travisci/ci-garnet:packer-1512502276-986baf0 | ||
RUN chmod go-w /usr/local/clang-5.0.0/bin | ||
USER travis | ||
WORKDIR /home/travis/builds | ||
RUN git clone https://github.com/travis-ci/travis-build.git | ||
WORKDIR travis-build | ||
RUN mkdir -p /home/travis/.travis | ||
RUN bash -lc "gem install travis" | ||
RUN bash -lc "travis" | ||
RUN ln -s $(pwd) /home/travis/.travis/travis-build | ||
RUN bash -lc "bundle install" | ||
WORKDIR /home/travis/builds | ||
RUN git clone https://github.com/travis-ci/travis-support.git | ||
WORKDIR travis-support | ||
RUN bash -lc "gem build travis-support.gemspec" | ||
RUN bash -lc "gem install travis-support" | ||
WORKDIR /home/travis/builds | ||
RUN git clone https://github.com/travis-ci/travis-rollout.git | ||
WORKDIR travis-rollout | ||
RUN bash -lc "gem build travis-rollout.gemspec" | ||
RUN bash -lc "gem install travis-rollout" | ||
WORKDIR /home/travis/builds | ||
RUN git clone https://github.com/travis-ci/travis-github_apps.git | ||
WORKDIR travis-github_apps | ||
RUN bash -lc "gem build travis-github_apps.gemspec" | ||
RUN bash -lc "gem install travis-github_apps" | ||
|
||
# Repo-related tasks | ||
ARG author | ||
ARG project | ||
ARG branch | ||
RUN mkdir -p /home/travis/builds/$author | ||
WORKDIR /home/travis/builds/$author | ||
RUN git clone -b $branch https://github.com/$author/$project.git | ||
WORKDIR $project | ||
CMD ["bash"] |