module.exports = function( grunt ) {
  grunt.initConfig({
    pkg: grunt.file.readJSON( "package.json" ),

    jshint: {
      options: {
        esnext: true,
        indent: 2,
        expr: true,
        camelcase: true,
        curly: true,
        eqeqeq: true,
        newcap: true,
        unused: true,
        trailing: true,
        browser: true,
        node: true
      },
      files: [
        "lib/node-vtt.js"
      ]
    },

    bump: {
      options: {
        files: [ "package.json" ],
        updateConfigs: [],
        commit: true,
        commitMessage: "Release v%VERSION%",
        commitFiles: [ "package.json" ],
        createTag: true,
        tagName: "v%VERSION%",
        tagMessage: "Version %VERSION%",
        push: true,
        pushTo: "git@github.com:mozilla/node-vtt.git",
      }
    },

    mochaTest: {
      test: {
        options: {
          reporter: "spec",
        },
        src: [ "tests/**/*.js" ]
      }
    }

  });

  grunt.loadNpmTasks( "grunt-contrib-jshint" );
  grunt.loadNpmTasks( "grunt-bump" );
  grunt.loadNpmTasks( "grunt-mocha-test" );

  grunt.registerTask( "default", [ "jshint", "mochaTest" ] );

}

module.exports = function( grunt ) {
  grunt.initConfig({
    pkg: grunt.file.readJSON( "package.json" ),

    jshint: {
      options: {
        esnext: true,
        indent: 2,
        expr: true,
        camelcase: true,
        curly: true,
        eqeqeq: true,
        newcap: true,
        unused: true,
        trailing: true,
        browser: true,
        node: true
      },
      files: [
        "lib/node-vtt.js"
      ]
    },

    bump: {
      options: {
        files: [ "package.json" ],
        updateConfigs: [],
        commit: true,
        commitMessage: "Release v%VERSION%",
        commitFiles: [ "package.json" ],
        createTag: true,
        tagName: "v%VERSION%",
        tagMessage: "Version %VERSION%",
        push: true,
        pushTo: "git@github.com:mozilla/node-vtt.git",
      }
    },

    mochaTest: {
      test: {
        options: {
          reporter: "spec",
          timeout: 50000
        },
        src: [ "tests/**/*.js" ]
      }
    }

  });

  grunt.loadNpmTasks( "grunt-contrib-jshint" );
  grunt.loadNpmTasks( "grunt-bump" );
  grunt.loadNpmTasks( "grunt-mocha-test" );

  grunt.registerTask( "default", [ "jshint", "mochaTest" ] );

}

Increase timeout for mocha tests.
Increase timeout for mocha tests.

Travis machine speed can be flaky sometimes. This ensures we don't
fail due to a timeout.
