-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gruntfile.js
51 lines (44 loc) · 1.27 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Generated on 2015-09-08 using generator-angular 0.9.8
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Replace this with your Lambda ARN
var lambdaArn = 'arn:aws:lambda:us-east-1:------------:function:jenkins-broken-build';
// Define the configuration for all the tasks
grunt.initConfig({
lambda_invoke: {
default: {
options: {
region: 'us-east-1',
profile: 'dev2' // replace with your own profile name
}
}
},
lambda_package: {
default: {}
},
lambda_deploy: {
default: {
options: {
timeout: 6,
memory: 128,
profile: 'dev2'
},
arn: lambdaArn
}
}
});
grunt.registerTask('invoke', [
'lambda_invoke'
]);
grunt.registerTask('deploy', [
'lambda_package',
'lambda_deploy'
]);
};