build(): Add a dartanalyzer run to Travis. It is required.

This commit is contained in:
Hans Larsen
2016-02-11 12:33:48 -08:00
parent 93fc4ff67b
commit 9b4b9e7cf4
9 changed files with 37 additions and 26 deletions
+1 -2
View File
@@ -18,8 +18,7 @@ is_dart && pub install
wait_for_tunnel
if is_dart; then
# npm run dartanalyzer
echo 'TODO(hans): Implement dartanalyzer'
npm run dartanalyzer
else
karma start test/karma.conf.js --single-run --no-auto-watch --reporters='dots'
fi
+7 -2
View File
@@ -5,8 +5,13 @@ import {detect} from '../../tools/build/dart';
const command = detect()['ANALYZER'];
analyze('dist/dart', command, true)
.then(() => {
.then((err) => {
if (err) {
throw err;
}
console.log('Done.');
}, (err) => {
})
.catch((err) => {
console.error('Error:', err);
process.exit(1);
});