#!/usr/bin/env bash

# Check only Vega file for now as Travis is having problem when generating SVG
if ! git diff --word-diff=color --exit-code HEAD -- ./examples/compiled/*.vg.json
then
  echo "Output examples vega specs are outdated."
  exit 1
else
  exit 0
fi

#!/usr/bin/env bash

# Check only Vega file for now as Travis is having problem when generating SVG
if ! git diff --word-diff=color --exit-code HEAD -- ./examples/compiled/*.vg.json ./examples/specs/normalized/*.vl.json
then
  echo "Output examples vega specs are outdated."
  exit 1
else
  exit 0
fi

Make Travis fails if normalized example is outdated
Make Travis fails if normalized example is outdated

Fix https://github.com/vega/vega-lite/issues/2574
