@@ -26,16 +26,41 @@ functions:
2626 params :
2727 working_dir : src
2828 script : |
29- set -o errexit -o verbose
30- export ${compile_env}
31- ${npm|npm} install
29+ set -o errexit
30+ export PATH="$PATH:${add_path|}"
31+ test -n "${add_environment|}" && export "${add_environment|}"
32+ set -o verbose
33+ "${npm|npm}" install
3234 " npm test" :
3335 - command : shell.exec
3436 params :
3537 working_dir : src
3638 script : |
37- set -o errexit -o verbose
38- ${npm|npm} test
39+ set -o errexit
40+ export PATH="$PATH:${add_path|}"
41+ test -n "${add_environment|}" && export "${add_environment|}"
42+ set -o verbose
43+ "${npm|npm}" run test
44+ " npm check" :
45+ - command : shell.exec
46+ params :
47+ working_dir : src
48+ script : |
49+ set -o errexit
50+ export PATH="$PATH:${add_path|}"
51+ test -n "${add_environment|}" && export "${add_environment|}"
52+ set -o verbose
53+ "${npm|npm}" run check
54+ " npm release" :
55+ - command : shell.exec
56+ params :
57+ working_dir : src
58+ script : |
59+ set -o errexit
60+ export PATH="$PATH:${add_path|}"
61+ test -n "${add_environment|}" && export "${add_environment|}"
62+ set -o verbose
63+ "${npm|npm}" run release
3964
4065# ######################################
4166# Tasks #
@@ -45,13 +70,16 @@ tasks:
4570- name : compile
4671 depends_on : []
4772 commands :
48- - func : " fetch source"
49- - func : " npm install"
50- - name : test
51- depends_on :
52- - name : compile
53- commands :
73+ - func : " fetch source"
74+ - func : " npm install"
5475 - func : " npm test"
76+ # - func: "npm check"
77+ - func : " npm release"
78+ # - name: test
79+ # depends_on:
80+ # - name: compile
81+ # commands:
82+ # - func: "npm test"
5583
5684
5785# ######################################
@@ -65,31 +93,39 @@ buildvariants:
6593 run_on :
6694 - " osx-108"
6795 expansions :
96+ add_environment : " "
97+ add_path : " /opt/node/bin"
6898 num_cores : $(sysctl -n hw.logicalcpu)
6999 tasks :
70100 - name : compile
71- - name : test
101+ # - name: test
72102
73103- name : windows-64
74104 display_name : Windows 64-bit
75105 modules : ~
76106 run_on :
77107 - " windows-64-vs2013-test"
78108 expansions :
109+ add_environment : " APPDATA=C:\\ Program Files (x86)\\ nodejs\\ node_modules"
110+ add_path : " /cygdrive/c/Program Files (x86)/nodejs"
79111 exe : " .exe"
80112 num_cores : $(grep -c ^processor /proc/cpuinfo)
81113 tasks :
82114 - name : compile
83- - name : test
115+ # - name: test
84116
85- - name : ubuntu
86- display_name : Ubuntu
87- modules : ~
88- run_on :
89- - " ubuntu1404-test"
90- expansions :
91- compile_env : CC=/opt/mongodbtoolchain/bin/gcc CXX=/opt/mongodbtoolchain/bin/g++
92- num_cores : $(grep -c ^processor /proc/cpuinfo)
93- tasks :
94- - name : compile
95- - name : test
117+ # # ubuntu buildvariant is ready to go when we're ready to add tasks/linux.js
118+
119+ # - name: ubuntu
120+ # display_name: Ubuntu
121+ # modules: ~
122+ # run_on:
123+ # - "ubuntu1404-test"
124+ # expansions:
125+ # add_environment: ""
126+ # add_path: "/opt/node/bin"
127+ # compile_env: CC=/opt/mongodbtoolchain/bin/gcc CXX=/opt/mongodbtoolchain/bin/g++
128+ # num_cores: $(grep -c ^processor /proc/cpuinfo)
129+ # tasks:
130+ # - name: compile
131+ # # - name: test
0 commit comments