-
-
Save jamesyang124/82f195405ccfa8fce4ec05212f44eb17 to your computer and use it in GitHub Desktop.
Add mochawesome to jenkins
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
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "default-src 'none'; script-src 'self' 'unsafe-inline'; connect-src 'self'; img-src 'self'; style-src 'self'; font-src 'self';") |
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
<HTML> | |
<body style="margin:0px;padding:0px;overflow:hidden"> | |
<script> | |
location.href='https://s3.amazonaws.com/{your-bucket}/{build}/mochawesome.html'; | |
</script> | |
</body> | |
</HTML> |
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
# Run Installs and Test | |
npm install --production | |
./node_modules/.bin/mocha test --reporter mochawesome --reporter-options inlineAssets=true | |
#upload test results to s3 | |
aws s3 rm $REPORT_S3 --recursive | |
aws s3 cp $REPORT_FOLDER $REPORT_S3 --recursive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment