Skip to content

Commit

Permalink
Promote warnings to errors in the compilation test
Browse files Browse the repository at this point in the history
  • Loading branch information
concavelenz committed Aug 13, 2015
1 parent 748b324 commit 80f9ae7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ install:
- ./scripts/ci/install_closure_deps.sh

script:
- java -jar ../closure-compiler/build/compiler.jar -O ADVANCED --warning_level VERBOSE --js='**.js' --js='!**_test.js' --js='!**_perf.js' --js='!**tester.js' --js='!**promise/testsuiteadapter.js' --js='!**osapi/osapi.js' --js='!**svgpan/svgpan.js' --jscomp_off=deprecated --js_output_file=$(mktemp)
- java -jar ../closure-compiler/build/compiler.jar -O ADVANCED --warning_level VERBOSE --jscomp_error='*' --jscomp_off=inferredConstCheck --jscomp_off=extraRequire --jscomp_off=unnecessaryCasts --jscomp_off=deprecated --jscomp_off=lintChecks --js='**.js' --js='!**_test.js' --js='!**_perf.js' --js='!**tester.js' --js='!**promise/testsuiteadapter.js' --js='!**osapi/osapi.js' --js='!**svgpan/svgpan.js' --js_output_file=$(mktemp)

- ./scripts/ci/lint_pull_request.sh
4 changes: 4 additions & 0 deletions closure/goog/test_module.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ goog.module('goog.test_module');
goog.setTestOnly('goog.test_module');
goog.module.declareLegacyNamespace();


/** @suppress {extraRequire} */
var dep = goog.require('goog.test_module_dep');



/** @constructor */
exports = function() {};

0 comments on commit 80f9ae7

Please sign in to comment.