-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
68 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,7 @@ distribution | |
[include] | ||
|
||
[libs] | ||
interfaces/ | ||
flow-typed/ | ||
|
||
[options] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,4 @@ jspm_packages | |
.node_repl_history | ||
|
||
distribution | ||
typings | ||
flow-typed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
test("adds 1 + 2 to equal 3", () => { | ||
// import { Travis } from "../travis.js" | ||
let Travis = require("../travis.js") | ||
let travis = new Travis({thing: ""}) | ||
expect(travis.env).toBe({thing: ""}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// @flow | ||
|
||
export interface CISource { | ||
/** hello */ | ||
env: any, | ||
/** validates */ | ||
isCI: (env: any) => boolean, | ||
/** PRs */ | ||
isPR: (env: any) => boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// @flow | ||
"use strict" | ||
|
||
export default class Travis { | ||
env = [] | ||
constructor (env: any) { this.env = env } | ||
|
||
isCI (env: any) : boolean { | ||
return true | ||
} | ||
isPR (env: any) : boolean { | ||
return true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// @flow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// @flow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
#! /usr/bin/env node | ||
// @flow | ||
|
||
var program = require("commander") | ||
import {version} from "../package.json" | ||
|
||
program | ||
.version("0.0.1") | ||
.option("-p, --peppers", "Add peppers") | ||
.option("-P, --pineapple", "Add pineapple") | ||
.option("-b, --bbq-sauce", "Add bbq sauce") | ||
.option("-c, --cheese [type]", "Add the specified type of cheese [marble]", "marble") | ||
.version(version) | ||
.option("-h, --head [commitish]", "TODO: Set the head commitish") | ||
.option("-b, --base [commitish]", "TODO: Set the base commitish") | ||
.option("-f, --fail-on-errors", "TODO: Fail on errors") | ||
.parse(process.argv) | ||
|
||
console.log("you ordered a pizza with:") | ||
// if (program.head) console.log(" - peppers") | ||
// if (program.base) console.log(" - pineapple") | ||
// if (program.fail_on_errors) console.log(" - bbq") | ||
|
||
if (program.peppers) console.log(" - peppers") | ||
if (program.pineapple) console.log(" - pineapple") | ||
if (program.bbqSauce) console.log(" - bbq") | ||
|
||
console.log(" - %s cheese", program.cheese) | ||
// console.log(" - %s cheese", program.cheese) |