Created
September 17, 2014 16:00
-
-
Save gAmUssA/4b254bf2b906192df336 to your computer and use it in GitHub Desktop.
Executing Karma from gradle build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task karma(type: Exec){ | |
workingDir "${project.webAppDirName}" | |
executable 'karma' | |
args 'start', '--single-run', 'true' | |
} | |
test { | |
doLast{ | |
tasks.karma.execute() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This assumes one has karma preinstalled. I strive for experience like that:
hg/git clone && ./gradlew clean build