Registry / devops / grunt-travis-lint

grunt-travis-lint

JSON →
library0.0.3jsnpmunverified

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.

npm install grunt-travis-lint
INSTALL
IMPORT
SIG · GRUNT-TRAVIS-LINT
G
grunt-travis-lint
devopsjavascriptv0.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

grunt-travis-lint
grunt.loadNpmTasks('grunt-travis-lint');
require('grunt-travis-lint');
This is a Grunt plugin. Load via grunt.loadNpmTasks in Gruntfile, not via require.

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
Debug
Known issues
gotchaOnly compatible with Grunt 0.4.x, not 1.x.
fix
Use Grunt 0.4.x or switch to an alternative tool.
affects: 0.0.3
gotchaProject 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.
affects: 0.0.3
Errors
Common errors & fixes
Loading "travis-lint.js" tasks... ERROR >> Error: Cannot find module 'grunt-travis-lint'
Plugin not installed or not in node_modules.
fix
Run: npm install grunt-travis-lint --save-dev
Warning: Task "travis-lint" not found. Use --force to continue.
Plugin not loaded in Gruntfile via grunt.loadNpmTasks.
fix
Add grunt.loadNpmTasks('grunt-travis-lint'); to your Gruntfile.
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
grunt-travis-lint — npm install grunt-travis-lint · libregistry