diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..75833b053 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,76 @@ +workflows: + version: 2 + node-multi-build: + jobs: + - node-v6 + - node-v8 + - node-v10 + - node-v10-minimal + +version: 2 +jobs: + node-base: &node-base + docker: + - image: node + steps: + - run: + name: Versions + command: npm version + - checkout + - restore_cache: + keys: + - v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }} + - v2-npm-lock-master-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }} + - v2-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }} + - v2-npm-cache-master-{{ .Environment.CIRCLE_JOB }} + - run: + name: Install dependencies + command: npm install + - run: + name: Test + command: npm test + - save_cache: + key: v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }} + paths: + - node_modules + + node-v6: + <<: *node-base + docker: + - image: node:6 + node-v8: + <<: *node-base + docker: + - image: node:8 + node-v10: + <<: *node-base + docker: + - image: node:10 + node-v10-minimal: + steps: + - run: + name: Versions + command: npm version + - checkout + - restore_cache: + keys: + - v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }} + - v2-npm-lock-master-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }} + - v2-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }} + - v2-npm-cache-master-{{ .Environment.CIRCLE_JOB }} + - run: + name: Install dependencies + command: npm install + - run: + name: Install eslint 5 + command: npm install eslint@5.0.0 --no-save + - run: + name: Test + command: npm test + - save_cache: + key: v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }} + paths: + - node_modules + docker: + - image: node:10 + diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 3d1494456..000000000 --- a/circle.yml +++ /dev/null @@ -1,16 +0,0 @@ -machine: - node: - version: 10 - -dependencies: - pre: - - nvm install 6 - - nvm install 8 - -test: - override: - - nvm use 6 && npm test - - nvm use 8 && npm test - - nvm use 10 && npm test - # Test for the minimum version we are supporting. - - nvm use 10 && npm i eslint@5.0.0 --no-save && $(npm bin)/mocha tests/lib/rules/*.js --reporter dot diff --git a/package.json b/package.json index d5bc96733..df1f7c2b6 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "chai": "^4.1.0", "eslint": "^5.2.0", "eslint-plugin-eslint-plugin": "^1.4.0", - "eslint-plugin-html": "^4.0.1", "eslint-plugin-vue-libs": "^3.0.0", "lodash": "^4.17.4", "mocha": "^5.2.0",