Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@robert-waggott
Last active August 29, 2015 14:25
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 robert-waggott/528238a7fb2893db97fd to your computer and use it in GitHub Desktop.
Save robert-waggott/528238a7fb2893db97fd to your computer and use it in GitHub Desktop.
Xamarin Insights grunt script
module.exports = function(grunt) {
grunt.initConfig({
shell: {
zipDYSM: {
command: [
'zip',
'-r',
'{PATH_TO_YOUR_BIN_FOLDER}/bin/iPhone/Debug/{APP_NAME}.app.dSYM.zip',
'{PATH_TO_YOUR_BIN_FOLDER}/bin/iPhone/Debug/{APP_NAME}.app.dSYM',
].join(' '),
options: {
execOptions: {
maxBuffer: Infinity
}
}
},
uploadDYSMToInsights: {
command: [
'curl',
'-F "dsym=@{PATH_TO_YOUR_BIN_FOLDER}/bin/iPhone/Debug/{APP_NAME}.app.dSYM.zip;type=application/zip"',
'https://xaapi.xamarin.com/api/dsym?apikey={INSIGHTS_API_KEY}',
].join(' '),
options: {
execOptions: {
maxBuffer: Infinity
}
}
}
}
});
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', [
'shell:zipDYSM',
'shell:uploadDYSMToInsights'
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment