Skip to content

Commit

Permalink
fix: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 13, 2018
1 parent 132401e commit af31a02
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 34 deletions.
31 changes: 7 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,12 @@ jobs:
working_directory: ~/cli
steps:
- checkout
- restore_cache: &restore_cache
keys:
- v0-yarn-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-{{checksum "yarn.lock"}}
- v0-yarn-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-
- v0-yarn-{{checksum ".circleci/config.yml"}}-master-
- run: .circleci/test
- store_test_results: &store_test_results
path: ~/cli/reports
- save_cache: &save_cache
key: v0-yarn-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-{{checksum "yarn.lock"}}
paths:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
- run: yarn
- run: yarn test
node-8:
<<: *test
docker:
- image: node:8
steps:
- checkout
- restore_cache: *restore_cache
- run: .circleci/test
- store_test_results: *store_test_results
release:
<<: *test
steps:
Expand All @@ -42,12 +25,12 @@ workflows:
version: 2
"eslint-config-oclif":
jobs:
# - node-latest
# - node-8
- node-latest
- node-8
- release:
context: org-global
filters:
branches: {only: master}
# requires:
# - node-latest
# - node-8
requires:
- node-latest
- node-8
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

5 changes: 1 addition & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ cache:

install:
- ps: Install-Product node $env:nodejs_version x64
- git submodule sync
- git submodule update --init --recursive
- git config --global user.email "[email protected]"
- git config --global user.name "oclif"
- yarn
test_script:
- yarn test
after_test:
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"eslint-plugin-unicorn": "^3.0.1"
},
"devDependencies": {
"eslint": "^4.16.0",
"eslint-config-oclif": "^1.2.2"
"eslint": "^4.16.0"
},
"engines": {
"node": ">= 8.0.0"
Expand All @@ -26,5 +25,8 @@
],
"license": "MIT",
"main": "index.js",
"repository": "oclif/eslint-config-oclif"
"repository": "oclif/eslint-config-oclif",
"scripts": {
"test": "eslint -c index.js ."
}
}

0 comments on commit af31a02

Please sign in to comment.