|
@@ -1,30 +0,0 @@
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-JSON_PACKAGE_PATH='../package.json'
|
|
|
-AMBER_VERSION_COMMAND='../support/amber-cli.js version'
|
|
|
-
|
|
|
-RED="1;31"
|
|
|
-GREEN="1;32"
|
|
|
-
|
|
|
-function makeItColorful {
|
|
|
- echo -e "\e[$2m$1\e[0m"
|
|
|
-}
|
|
|
-
|
|
|
-amberResult=`node $AMBER_VERSION_COMMAND`
|
|
|
-
|
|
|
-expectedAmberVersion=`node --eval "console.log(require('./$JSON_PACKAGE_PATH').version)"`
|
|
|
-
|
|
|
-
|
|
|
-echo $amberResult | grep $expectedAmberVersion > /dev/null 2>&1
|
|
|
-if [ $? -eq 0 ]
|
|
|
-then
|
|
|
- makeItColorful "ok 1 - amber version" $GREEN
|
|
|
- exit 0
|
|
|
-else
|
|
|
- makeItColorful "$amberResult" $RED
|
|
|
- makeItColorful "not ok 1 - amber version\n\texpected : $expectedAmberVersion" $RED
|
|
|
- exit 1
|
|
|
-fi
|