Skip to content

Instantly share code, notes, and snippets.

View clintonhalpin's full-sized avatar
✌️

Clinton Halpin clintonhalpin

✌️
View GitHub Profile
@clintonhalpin
clintonhalpin / index.md
Last active October 9, 2015 16:08
Setup Travis CI for open source projects!

Auto deploy built products!

Mostly forked from - https://gist.github.com/domenic/ec8b0fc8ab45f39403dd but there are some other things in here

Create a deploy script

In the root of your project, create a deploy script. I decided to place mine in ./bin/deploy.sh but you could put in any where

deploy.sh

#!/bin/bash
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
https://media.giphy.com/media/ygAaR0n5RsyAM/giphy.gif

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

// Code or Import's here...
// import Module1 from 'Module1'
// let Module2 = 2;
export default {
Module1,
Module2
}
// http://facebook.github.io/react/blog/2015/10/07/react-v0.14.html#stateless-functional-components
// Simpler Components - Stateless Functional Components
var MyComponent = function(dataOk) {
return(
<div className="ok">{dataOk}</div>
)
}
// ES6 Version
"start": "parallelshell \"npm run test\" \"npm run open\"",
┌─────────────────────────────────┬──────────────────────────────────────────────────────────────┐
│ Published │ January 25, 2016 10:51 PM │
├─────────────────────────────────┼──────────────────────────────────────────────────────────────┤
│ Paths │ dist/styles/styles.css │
├─────────────────────────────────┼──────────────────────────────────────────────────────────────┤
│ Style Sheets │ 1 │
├─────────────────────────────────┼──────────────────────────────────────────────────────────────┤
│ Style Elements │ 0 │
├─────────────────────────────────┼──────────────────────────────────────────────────────────────┤
│ Size │ 44.1KB │