Skip to content

Instantly share code, notes, and snippets.

@dingo-d
Last active November 7, 2018 16:33
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 dingo-d/f7e9de86b34096cd2f5fa496b18f3eaf to your computer and use it in GitHub Desktop.
Save dingo-d/f7e9de86b34096cd2f5fa496b18f3eaf to your computer and use it in GitHub Desktop.
Locally setup travis on docker. Taken from: https://github.com/travis-ci/travis-ci/issues/9709 Used for twentynineteen travis checks.
docker run --name travis-debug -dit travisci/ci-garnet:packer-1512502276-986baf0 /sbin/init
docker exec -it travis-debug bash -l
su - travis
rvm install 2.3.0
rvm use 2.3.0
cd builds
git clone --branch issue_9709_fix https://github.com/ekivolowitz/travis-build.git
cd travis-build
gem install travis
travis # to create ~/.travis
ln -s pwd ~/.travis/travis-build
bundle install
cd ..
rm -rf ~/.travis/travis-build && mv travis-build ~/.travis/
#Travis compile should now show up in the travis command list, but it's broken.
git clone git@github.com:dingo-d/twentynineteen.git && cd twentynineteen && git checkout feature/add-wptrt-phpcs-check
# if you run travis compile here in your repo, you'll get an error about missing support libraries. Install them with the following.
cd ~/.travis
git clone https://github.com/travis-ci/travis-support.git
git clone https://github.com/travis-ci/travis-rollout.git
git clone https://github.com/travis-ci/travis-github_apps.git
cd travis-github_apps && gem build travis-github_apps.gemspec && gem install travis-github_apps && cd ..
cd travis-rollout/ && gem build travis-rollout.gemspec && gem install travis-rollout && cd ..
cd travis-support/ && gem build travis-support.gemspec && gem install travis-support && cd ..
cd ~/builds/twentynineteen && travis compile > build.sh && chmod +x build.sh && ./build.sh
# In the last step don't run ./build.sh, but change the branch in the build.sh to feature branch, then save and then run the build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment