Skip to content

Commit

Permalink
Updating CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
fgr-araujo committed Jun 24, 2018
1 parent 06dba0c commit 5f0d267
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 17 deletions.
47 changes: 47 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,47 @@
version: 2
jobs:
build:
working_directory: ~/iFgR/vue-shortkey
parallelism: 1
shell: /bin/bash --login

environment:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results

docker:
- image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37
command: /sbin/init

steps:
- checkout
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
- run:
working_directory: ~/iFgR/vue-shortkey
command: nvm install 7 && nvm alias default 7

- restore_cache:
keys:
- v1-dep-{{ .Branch }}-
- v1-dep-master-
- v1-dep-

- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: if [ -z "${NODE_ENV:-}" ]; then export NODE_ENV=test; fi
- run: export PATH="~/iFgR/vue-shortkey/node_modules/.bin:$PATH"
- run: npm install

- save_cache:
key: v1-dep-{{ .Branch }}-{{ epoch }}
paths:
- ./node_modules

- run: npm test

- store_test_results:
path: /tmp/circleci-test-results

- store_artifacts:
path: /tmp/circleci-artifacts
- store_artifacts:
path: /tmp/circleci-test-results
14 changes: 0 additions & 14 deletions circle.yml

This file was deleted.

2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/index.js
Expand Up @@ -175,7 +175,6 @@ const availableElement = (decodedKey) => {
return !!mapFunctions[decodedKey] && !(objectIsAvoided || filterAvoided)
}

export default ShortKey
if (typeof module != 'undefined' && module.exports) {
module.exports = ShortKey;
} else if (typeof define == 'function' && define.amd) {
Expand Down

0 comments on commit 5f0d267

Please sign in to comment.