Skip to content

Commit

Permalink
Make Circle only run Danger in production
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Mar 19, 2017
1 parent 8760c9a commit beffc2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
9 changes: 2 additions & 7 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@ machine:
dependencies:
override:
- yarn
- yarn add danger
cache_directories:
- ~/.cache/yarn

test:
override:
- yarn build
- npm link
- danger

post:
- yarn lint
- yarn test
- yarn danger -- run --dangerfile dangerfile.circle.js
1 change: 1 addition & 0 deletions dangerfile.circle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
message("this worked")
2 changes: 1 addition & 1 deletion source/commands/danger-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare const global: any
program
.option("-v, --verbose", "Verbose output of files")
.option("-c, --external-ci-provider [modulePath]", "Specify custom CI provider")
.option("-d, --dangerfile [filePath]", "Specify custom dangefile other than default dangerfile.js")
.option("-d, --dangerfile [filePath]", "Specify custom dangerfile other than default dangerfile.js")
.parse(process.argv)

process.on("unhandledRejection", function(reason: string, _p: any) {
Expand Down

0 comments on commit beffc2e

Please sign in to comment.