# node.js
- sudo apt-get install -qq nodejs npm
- sudo npm install nodeunit -g || true
-# TODO: move npm install to nodejs Makefile
- - cd lib/nodejs; npm install & cd ../..
install:
- sh bootstrap.sh
script:
# TODO: fix these languages
- - sh configure --without-erlang --without-haskell --without-python
+ - sh configure --without-erlang --without-haskell --without-python --without-go --without-lua
- make -j$NUM_CPU && make dist
- make cross -j$NUM_CPU
- sh bootstrap.sh ; sh contrib/mingw-cross-compile.sh
echo "" >> log/error.log
fi
- # write json array
- client_server=( ${client_server//[-]/ } )
- server=${client_server[0]}
- client=${client_server[1]}
+ # split client-server string
+ client=${client_server%-*}
+ server=${client_server#*-}
cat << EOF >> $STATUS_HTML
[
echo " full log is here test/log/client_server_protocol_transport_server.log"
echo " or look at file://$BASEDIR/$STATUS_HTML"
-ELAPSED_TIME=$(($SECONDS - $START_TIME))
-DURATION="$(($ELAPSED_TIME/60)) min $(($ELAPSED_TIME%60)) sec"
+ELAPSED_TIME=$(echo "(${SECONDS} - ${START_TIME})" | bc)
+DURATION="${ELAPSED_TIME} seconds"
echo "test an took" $DURATION
print_html_footer "$DURATION"