From fb3db8e8e33b0701e8f59ea827ad07addd3acc4e Mon Sep 17 00:00:00 2001 From: xxxzsx Date: Fri, 5 Mar 2021 11:17:41 +0300 Subject: [PATCH] CI/CD update --- .jscsrc | 4 ---- .jshintrc | 20 -------------------- .travis.yml | 15 +++++++++------ AUTHORS | 1 - gulpfile.js | 38 -------------------------------------- package.json | 6 +----- 6 files changed, 10 insertions(+), 74 deletions(-) delete mode 100644 .jscsrc delete mode 100644 .jshintrc delete mode 100644 AUTHORS delete mode 100644 gulpfile.js diff --git a/.jscsrc b/.jscsrc deleted file mode 100644 index bcd9480..0000000 --- a/.jscsrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "preset": "google", - "fileExtensions": [ ".js" ] -} diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 6f8e9a4..0000000 --- a/.jshintrc +++ /dev/null @@ -1,20 +0,0 @@ -{ - "node": true, - "bitwise": true, - "camelcase": true, - "curly": true, - "forin": true, - "immed": true, - "latedef": "nofunc", - "newcap": true, - "noarg": true, - "noempty": true, - "nonew": true, - "quotmark": "single", - "undef": true, - "unused": true, - "strict": true, - "maxlen": 80, - "trailing": true, - "sub": true -} diff --git a/.travis.yml b/.travis.yml index da9e9e6..950f555 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js node_js: -- '0.10' -- '0.11' +- '12' + deploy: provider: npm email: andrew@balmos.org @@ -11,11 +11,14 @@ deploy: tags: true all_branches: true repo: OADA/rsa-pem-to-jwk -before_install: -- npm install -g gulp + +cache: + directories: + - node_modules + +install: +- npm install script: -- gulp lint -- gulp style - npm run cover after_success: - cat ./coverage/lcov.info | ./node_modules/.bin/coveralls --verbose diff --git a/AUTHORS b/AUTHORS deleted file mode 100644 index f5a319b..0000000 --- a/AUTHORS +++ /dev/null @@ -1 +0,0 @@ -Andrew Balmos diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index 499dd56..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,38 +0,0 @@ -/* Copyright 2014 Open Ag Data Alliance - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -'use strict'; - -var gulp = require('gulp'); -var jshint = require('gulp-jshint'); -var jscs = require('gulp-jscs'); - -var files = ['gulpfile.js', 'rsa-pem-to-jwk.js', 'test/**/*.js']; - -gulp.task('default', ['lint', 'style', 'watch']); - -gulp.task('lint', function() { - return gulp.src(files) - .pipe(jshint()) - .pipe(jshint.reporter('jshint-stylish')); -}); - -gulp.task('style', function() { - return gulp.src(files) - .pipe(jscs()); -}); - -gulp.task('watch', function() { - gulp.watch(files, ['lint', 'style']); -}); diff --git a/package.json b/package.json index 05c2ee9..ecbf72a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "rsa-pem-to-jwk.js", "scripts": { "test": "./node_modules/.bin/_mocha -w", - "cover": "./node_modules/.bin/istanbul cover --include-all-sources -x gulpfile.js node_modules/.bin/_mocha -- -R spec", + "cover": "./node_modules/.bin/istanbul cover --include-all-sources node_modules/.bin/_mocha -- -R spec", "clean": "rm -rf ./coverage" }, "repository": { @@ -28,11 +28,7 @@ "homepage": "https://github.com/OADA/rsa-pem-to-jwk", "devDependencies": { "chai": "^1.10.0", - "gulp": "^3.8.10", - "gulp-jscs": "^1.3.1", - "gulp-jshint": "^1.9.0", "istanbul": "^0.3.5", - "jshint-stylish": "^1.0.0", "mocha": "^2.0.1", "coveralls": "~2.11.2" },