Skip to content

Commit

Permalink
Add coveralls to build and remove deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Jul 19, 2019
1 parent 4b84139 commit 250722d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 28 deletions.
26 changes: 4 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,16 @@ jobs:
command: npm install
- run:
name: npm test
command: npm test
deploy:
<<: *nodejs
steps:
- attach_workspace:
at: /tmp/workspace
- run:
name: setup auth
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- run:
name: set npm version to build
command: npm version "1.0.$CIRCLE_BUILD_NUM" --no-git-tag-version
command: npm test
- run:
name: npm publish
command: npm publish
name: npm coveralls
command: npm run coveralls

workflows:
version: 2
build:
jobs:
- build
- test:
requires:
requires:
- build
- deploy:
context: org-global
requires:
- test
filters:
branches:
only: master
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Menoetius
[![CircleCI](https://img.shields.io/circleci/project/roylines/menoetius.svg)]()
[![Coveralls](https://img.shields.io/coveralls/achingbrain/menoetius.svg)]()
[![David](https://img.shields.io/david/achingbrain/menoetius.svg)]()
[![CircleCI](https://circleci.com/gh/achingbrain/menoetius/tree/master.svg?style=svg)](https://circleci.com/gh/achingbrain/menoetius/tree/master)
[![Coverage Status](https://coveralls.io/repos/github/achingbrain/menoetius/badge.svg)](https://coveralls.io/github/achingbrain/menoetius)
[![Dependencies Status](https://david-dm.org/achingbrain/menoetius/status.svg)](https://david-dm.org/achingbrain/menoetius)

[![NPM](https://nodei.co/npm/menoetius.png)](https://nodei.co/npm/menoetius/)

Expand Down Expand Up @@ -153,7 +153,7 @@ You can then view the prometheus server on [http://127.0.0.1:9090](http://127.0.

# Etymology

![Menoetius](https://www.greekmythology.com/Titans/Menoetius/menoetius.html)
![Menoetius](https://www.greekmythology.com/images/mythology/menoetius_152.jpg)

Menoetius was a Titan god, son of Titans Iapetus and Clymene, and brother of Atlas, Prometheus and Epimetheus. His name derives from the Ancient Greek words "menos" (might) and "oitos" (doom), meaning "doomed might".

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "node middleware to automatically instrument node applications for consumption by prometheus",
"main": "index.js",
"scripts": {
"test": "istanbul cover _mocha -dir $CIRCLE_ARTIFACTS",
"coveralls": "cat $CIRCLE_ARTIFACTS/lcov.info | coveralls"
"test": "istanbul cover _mocha -dir ./coverage",
"coveralls": "cat ./coverage/lcov.info | coveralls"
},
"git-pre-hooks": {
"pre-push": "npm test"
Expand Down

0 comments on commit 250722d

Please sign in to comment.