Sha256: 8b112e3a8e02439d548d33181297e0f3f1b42b32e241d6978611651fd1f8f0b9

Contents?: true

Size: 495 Bytes

Versions: 19

Compression:

Stored size: 495 Bytes

Contents

#!/bin/bash

mkdir -p tmp/dist/

# browser_test browserifies index.js to tmp/dist
yarn run browser_test

# comm -3 only returns lines that differ between the two files. If none are different, diff will be empty
diff=`diff dist/browser.js tmp/dist/browser.js`

# Exit with a non-zero code if the diff isn't empty
if [ "$diff" != "" ]; then
  echo "dist/browser.js is out of date. Please run 'yarn run browser' locally and commit/push the result"
  exit 1
fi

echo "dist/browser.js is up to date"

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cqm-models-4.2.0 bin/validate_browser.sh
cqm-models-3.1.2 bin/validate_browser.sh
cqm-models-4.1.1 bin/validate_browser.sh
cqm-models-4.1.0 bin/validate_browser.sh
cqm-models-4.0.2 bin/validate_browser.sh
cqm-models-4.0.1 bin/validate_browser.sh
cqm-models-4.0.0 bin/validate_browser.sh
cqm-models-3.1.1 bin/validate_browser.sh
cqm-models-3.1.0 bin/validate_browser.sh
cqm-models-3.0.6 bin/validate_browser.sh
cqm-models-3.0.5 bin/validate_browser.sh
cqm-models-3.0.4 bin/validate_browser.sh
cqm-models-3.0.3 bin/validate_browser.sh
cqm-models-3.0.2 bin/validate_browser.sh
cqm-models-3.0.1 bin/validate_browser.sh
cqm-models-2.0.1 bin/validate_browser.sh
cqm-models-3.0.0 bin/validate_browser.sh
cqm-models-2.0.0 bin/validate_browser.sh
cqm-models-1.1.1.0 bin/validate_browser.sh