Skip to content

Commit

Permalink
CI Migration
Browse files Browse the repository at this point in the history
  TravisCI -> CircleCI
  coveralls -> codecov
  • Loading branch information
Christophe Roger committed Nov 21, 2017
1 parent 290a701 commit 3aab76e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:7.10

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run: npm run build

- run: npm run cover

- run: npm run codecov


1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"test": "./node_modules/.bin/mocha -R nyan",
"cover": "./node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- -R spec test/*",
"coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"codecov": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && codecov",
"build": "uglifyjs ./lib/index.js -m -c -o ./dist/index.js; uglifyjs ./lib/array.js -m -c -o ./dist/array.js; uglifyjs ./lib/object.js -m -c -o ./dist/object.js; uglifyjs ./lib/regexp.js -m -c -o ./dist/regexp.js;"
},
"repository": {
Expand Down

0 comments on commit 3aab76e

Please sign in to comment.