Skip to content

Instantly share code, notes, and snippets.

@michaelneale
Created January 24, 2013 10:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelneale/4619567 to your computer and use it in GitHub Desktop.
Save michaelneale/4619567 to your computer and use it in GitHub Desktop.
export DISPLAY=:1
Xvfb :1 &
node_version=v0.8.14
install_name=node-$node_version-linux-x64
node_home=$PWD/$install_name
if [ ! -e $install_name.tar.gz ]
then
wget http://nodejs.org/dist/$node_version/$install_name.tar.gz
tar xf $install_name.tar.gz
$node_home/bin/npm install -g testacular
fi
export PATH=$PATH:$node_home/bin
scripts/test.sh
@michaelneale
Copy link
Author

This lets you run angular.js tests in Jenkins - remember to have singleRun:true; in the conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment