Simple script for Travis-CI to push a succesful build onto another branch
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
.gitignore
.travis.yml
README.md

README.md

TravisonBravis

Simple script for Travis-CI to push a succesful build onto a another branch

###Guide###

  1. Install Travis gem install travis

  2. Go to your Travis-CI and enable your repository.

  3. Go to your GitHub repository settings > Service Hooks > Travis and choose Update settings.

  4. Go to your GitHub profile settings > Applications > Personal Access Tokens and choose Create new token.

    Copy and keep. Choose a descriptive name e.g. travis-yourrepo

  5. Locate your local repository and encrypt your token travis encrypt GH_TOKEN="yourtokenhere" --add

    It will then show up in your .travis.yml file.

     env:
         global:
         - secure: yourencryptedtokenhere
    
  6. Replace .travis.yml with your settings.

    branches:
        only: 
        - working-branch
    
    
    - GH_REPO="username/yourrepo"
    - GH_NAME="username"
    - GH_EMAIL="example@email.com"
    - DEVELOPMENT="working-branch"
    - SUCCESSFUL="success-branch" 
    - REMOTE="origin"
    

and you're good to go!

Build Status