Skip to content

Instantly share code, notes, and snippets.

@gAmUssA
Created September 17, 2014 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gAmUssA/4b254bf2b906192df336 to your computer and use it in GitHub Desktop.
Save gAmUssA/4b254bf2b906192df336 to your computer and use it in GitHub Desktop.
Executing Karma from gradle build
task karma(type: Exec){
workingDir "${project.webAppDirName}"
executable 'karma'
args 'start', '--single-run', 'true'
}
test {
doLast{
tasks.karma.execute()
}
}
@iNikem
Copy link

iNikem commented Sep 17, 2014

This assumes one has karma preinstalled. I strive for experience like that:
hg/git clone && ./gradlew clean build

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