Skip to content

Commit

Permalink
Moving to yogi for travis cli testing
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Aug 23, 2012
1 parent f8669cf commit 3fee9ae
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"yuitest": "*",
"yuidocjs": "*",
"grover": "*",
"shifter": "*"
"shifter": "*",
"yogi" "*"
},
"licenses":[
{
Expand Down
2 changes: 1 addition & 1 deletion src/common/travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo "Installing NPM Modules"
npm install -loglevel silent
wait
echo "Installing testing tools"
npm install -loglevel silent yuitest grover yuidocjs
npm install -loglevel silent yuitest grover yuidocjs yogi
wait
cd ../

Expand Down
21 changes: 14 additions & 7 deletions src/common/travis/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,32 @@ cd ./build-npm/

npm_base=`pwd`
yuitest="${npm_base}/node_modules/.bin/yuitest"
yogi="${npm_base}/node_modules/.bin/yogi"
grover="${npm_base}/node_modules/.bin/grover"

echo "Build Root: ${root}"
echo "NPM Base: ${npm_base}"
echo "yogi: ${yogi}"
echo "YUITest: ${yuitest}"
echo "Grover: ${grover}"
echo "PhantomJS: `phantomjs -v`"

echo "Running Tests.."

tests=`${root}/src/common/travis/gettests.js ${root}`
#tests=`${root}/src/common/travis/gettests.js ${root}`

RETVAL=$?
[ $RETVAL -ne 0 ] && exit 1

echo "Tests: ${tests}"
#RETVAL=$?
#[ $RETVAL -ne 0 ] && exit 1
#
#echo "Tests: ${tests}"
#
#cd ${root}
#${yuitest} ${tests}

cd ${root}
${yuitest} ${tests}
cd ${root}/src
echo "cd ${root}/src"
echo "yogi test --cli --debug"
${yogi} test --cli --debug

RETVAL=$?
[ $RETVAL -ne 0 ] && exit 1
Expand Down

0 comments on commit 3fee9ae

Please sign in to comment.