Skip to content

Commit

Permalink
Now executing karma frontend tests if app contains Gruntfile and phan…
Browse files Browse the repository at this point in the history
…tom JS is enabled
  • Loading branch information
Sebastian Gronewold committed Apr 23, 2014
1 parent e2f7faf commit 9cfb6a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,13 @@ if [ ! -z "${PHANTOM_JS_ENABLED}" ] && [ "${PHANTOM_JS_ENABLED}" = "1" ]; then
mv $CACHE_DIR/$PHANTOMJS_ARCHIVE_NAME $BUILD_DIR/vendor/phantomjs
fi
if [ -f "${BUILD_DIR}/app/assets/Gruntfile.js" ] && [ ! -z "${PHANTOM_JS_ENABLED}" ] && [ "${PHANTOM_JS_ENABLED}" = "1" ]; then
echo "-----> Executing Karma tests..."
pushd ${BUILD_DIR}/app/assets/
node_modules/grunt-cli/bin/grunt test --env=prod
popd > /dev/null
fi
echo "-----> Hacking less & node path"
ln -s ${BUILD_DIR}/${NODE_PATH}/ /app/${NODE_PATH}
export INCLUDE_PATH="${BUILD_DIR}/${NODE_PATH}/include"
Expand Down

0 comments on commit 9cfb6a6

Please sign in to comment.