Skip to content

Commit

Permalink
Add circle.yml, closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
RasPhilCo committed Mar 20, 2017
1 parent dc2bede commit 2bc20d9
Show file tree
Hide file tree
Showing 4 changed files with 941 additions and 218 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ cli-engine-example
![Heroku logo](https://d4yt8xl9b7in.cloudfront.net/assets/home/logotype-heroku.png)

[![CircleCI](https://circleci.com/gh/heroku/cli-engine-example/tree/master.svg?style=svg)](https://circleci.com/gh/heroku/cli-engine-example/tree/master)

An example CLI for use with [cli-engine](https://github.com/heroku/cli-engine)
29 changes: 29 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
version: 2
executorType: docker
containerInfo:
- image: dickeyxxx/cli-engine@sha256:090e7e327787303491f27482f021b9fbcfeac1d379a20769c7524c1c53b68c88
stages:
build:
workDir: ~/cli-engine-example
environment:
- CIRCLE_PROJECT_USERNAME: dickeyxxx
- CIRCLE_PROJECT_REPONAME: cli-engine-example
- HEROKU_DEBUG: 1
steps:
- type: checkout
- type: cache-restore
key: cli-engine-example{{checksum "package.json"}}
- type: shell
command: |
set -exu
yarn --prefer-offline --pure-lockfile
./node_modules/.bin/jest
- type: test-results-store
path: /tmp/test-results
- type: cache-save
key: cli-engine-example{{checksum "package.json"}}
paths:
- /usr/local/share/.cache/yarn
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"bin": {
"cli-engine-example": "bin/run"
},
"bugs": "https://github.com/heroku/cli-engine/issues",
"cli-engine": {
"bugs": "https://github.com/heroku/cli-engine-example/issues",
"cli-engine-example": {
"node": "7.6.0",
"s3": {
"bucket": "heroku-cli-assets",
Expand All @@ -22,16 +22,19 @@
"cli-engine-example-plugin": "2.1.1"
},
"devDependencies": {
"babel-cli": "6.24.0"
"jest": "19.0.2"
},
"homepage": "https://github.com/heroku/cli-engine",
"jest": {
"testEnvironment": "node",
"rootDir": "./"
},
"homepage": "https://github.com/heroku/cli-engine-example",
"keywords": [
"cli"
"cli-engine-example"
],
"license": "ISC",
"repository": "https://github.com/heroku/cli-engine",
"repository": "https://github.com/heroku/cli-engine-example",
"scripts": {
"build": "../bin/cli-build",
"release": "../bin/cli-release"
"test": "jest"
}
}
Loading

0 comments on commit 2bc20d9

Please sign in to comment.