Code Monkey home page Code Monkey logo

balena-travis-test's Introduction

resin-travis-test It builds!

Continuous Integration on your devices:

Deploy to resin.io from Github using Travis CI.

Description

This repo is a simple example on how to use Travis CI to push code to your devices on resin.io. The travis.yml file specifies the script that "builds" the project - in this case, the build consists in adding the Resin git remote and pushing to it. This will trigger the build in Resin's servers and deploy the code to your devices.

The script could, of course, be modified to include tests, other builds or whatever you need for your own project. Pushing different branches to different apps (if you have a staging app, for instance), could easily achieved by adding git push commands to different remotes.

Configuration

The travis.yml file uses just two environment variables: RESIN_REMOTE and RESIN_DEPLOY_KEY. This can be set in the Travis Settings page for the repo.

RESIN_REMOTE is just the ssh address of the Resin git remote, e.g. [email protected]:gh_pcarranzav/supertestrpi.git.

RESIN_DEPLOY_KEY should be a private SSH key so that Travis can push to Resin. You can generate the key like this:

ssh-keygen # Will prompt for a file name, input one like 'id_rsa'
echo -n "\""; cat id_rsa | awk 1 ORS='\\n'; echo "\""

This last command will print the SSH key in a format that can be inputted in the Travis Settings GUI, that is, between quotes and with newlines replaced by "\n" (a slash followed by an n, not the newline character).

The public key should then be added on the Resin dashboard.

This could alternatively be done by using Travis' file encryption feature.

balena-travis-test's People

Contributors

pcarranzav avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.