torch2424 / goSmartHome

A webserver to run fun commands on a raspberry pi
Apache License 2.0
0 stars 0 forks source link

Pull in pull request code to prod through travis #12

Closed torch2424 closed 8 years ago

torch2424 commented 8 years ago

Forgot that in deploy.sh we are simply pulling in master before the PR is merged.

because of this, we will need to either bring a tar of the merge code over ssh, or replace text with our pull request id to switch to that branch in the project

torch2424 commented 8 years ago

See: https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables

and search for "TRAVIS_PULL_REQUEST"

torch2424 commented 8 years ago

Or this ("Stolen from travis build logs")

$ cd torch2424/goSmartHome 0.37s$ git fetch origin +refs/pull/11/merge: remote: Counting objects: 7, done. remote: Compressing objects: 100% (6/6), done. remote: Total 7 (delta 3), reused 3 (delta 0), pack-reused 0 Unpacking objects: 100% (7/7), done. From https://github.com/torch2424/goSmartHome

torch2424 commented 8 years ago

Actually, this would be the much easier/better way to do it:

http://stackoverflow.com/questions/31882306/how-to-configure-travis-ci-to-build-pull-requests-merges-to-master-w-o-redunda

torch2424 commented 8 years ago

this was closed by #13