grunt-travis-lint

raw JSON →
0.0.3 verified Fri May 01 auth: no javascript abandoned

A Grunt plugin to lint .travis.yml files. Version 0.0.3 is the latest and only release, dated 2014. No updates since. It validates Travis CI configuration syntax. Lightweight, simple, no dependencies. Alternatives include travis-lint CLI and JSON/YAML validators.

error Loading "travis-lint.js" tasks... ERROR >> Error: Cannot find module 'grunt-travis-lint'
cause Plugin not installed or not in node_modules.
fix
Run: npm install grunt-travis-lint --save-dev
error Warning: Task "travis-lint" not found. Use --force to continue.
cause Plugin not loaded in Gruntfile via grunt.loadNpmTasks.
fix
Add grunt.loadNpmTasks('grunt-travis-lint'); to your Gruntfile.
gotcha Only compatible with Grunt 0.4.x, not 1.x.
fix Use Grunt 0.4.x or switch to an alternative tool.
gotcha Project has not been updated since 2014; may not work with newer node versions or complex .travis.yml files.
fix Consider using the travis-lint CLI tool or a YAML/JSON validator.
npm install grunt-travis-lint
yarn add grunt-travis-lint
pnpm add grunt-travis-lint

Installs the plugin and registers the travis-lint task in a Gruntfile.

// Install: npm install grunt-travis-lint --save-dev
// In Gruntfile.js:
module.exports = function(grunt) {
  grunt.loadNpmTasks('grunt-travis-lint');
  grunt.registerTask('default', ['travis-lint']);
};
// Then run: grunt travis-lint