@@ -27,40 +27,42 @@ functions:
27
27
working_dir : src
28
28
script : |
29
29
set -o errexit
30
+ set -o verbose
30
31
export PATH="$PATH:${add_path|}"
31
32
test -n "${add_environment|}" && export "${add_environment|}"
32
- set -o verbose
33
- "${npm|npm}" install
33
+ ${node|node} --version
34
+ ${npm|npm} --version
35
+ ${npm|npm} install
34
36
" npm test" :
35
37
- command : shell.exec
36
38
params :
37
39
working_dir : src
38
40
script : |
39
41
set -o errexit
42
+ set -o verbose
40
43
export PATH="$PATH:${add_path|}"
41
44
test -n "${add_environment|}" && export "${add_environment|}"
42
- set -o verbose
43
- "${npm|npm}" run test
45
+ ${npm|npm} run test
44
46
" npm check" :
45
47
- command : shell.exec
46
48
params :
47
49
working_dir : src
48
50
script : |
49
51
set -o errexit
52
+ set -o verbose
50
53
export PATH="$PATH:${add_path|}"
51
54
test -n "${add_environment|}" && export "${add_environment|}"
52
- set -o verbose
53
- "${npm|npm}" run check
55
+ ${npm|npm} run check
54
56
" npm release" :
55
57
- command : shell.exec
56
58
params :
57
59
working_dir : src
58
60
script : |
59
61
set -o errexit
62
+ set -o verbose
60
63
export PATH="$PATH:${add_path|}"
61
64
test -n "${add_environment|}" && export "${add_environment|}"
62
- set -o verbose
63
- "${npm|npm}" run release
65
+ ${npm|npm} run release
64
66
65
67
# ######################################
66
68
# Tasks #
@@ -75,6 +77,17 @@ tasks:
75
77
- func : " npm test"
76
78
# - func: "npm check"
77
79
- func : " npm release"
80
+ - command : s3.put
81
+ params :
82
+ aws_key : ${aws_key}
83
+ aws_secret : ${aws_secret}
84
+ local_file : " src/dist/${installer_filename}"
85
+ remote_file : " mongodbjs-scout-master/${build_variant}/${revision}/${installer_filename}"
86
+ bucket : mciuploads
87
+ permissions : public-read
88
+ content_type : ${installer_content_type|application/octet-stream}
89
+ display_name : Installer
90
+
78
91
# - name: test
79
92
# depends_on:
80
93
# - name: compile
@@ -94,7 +107,9 @@ buildvariants:
94
107
- " osx-108"
95
108
expansions :
96
109
add_environment : " "
97
- add_path : " /opt/node/bin"
110
+ add_path : /opt/node/bin
111
+ installer_content_type : " application/x-apple-diskimage"
112
+ installer_filename : " MongoDB Scout.dmg"
98
113
num_cores : $(sysctl -n hw.logicalcpu)
99
114
tasks :
100
115
- name : compile
@@ -108,6 +123,8 @@ buildvariants:
108
123
expansions :
109
124
add_environment : " APPDATA=C:\\ Program Files (x86)\\ nodejs\\ node_modules"
110
125
add_path : " /cygdrive/c/Program Files (x86)/nodejs"
126
+ installer_content_type : " application/octet-stream"
127
+ installer_filename : " MongoDB Scout.exe"
111
128
exe : " .exe"
112
129
num_cores : $(grep -c ^processor /proc/cpuinfo)
113
130
tasks :
0 commit comments