File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ machine:
1414# Customize the repository after checkout:
1515checkout :
1616 post :
17- - ' git init && make init '
17+ - ' git init'
1818
1919
2020# Custom environment dependencies:
Original file line number Diff line number Diff line change @@ -179,6 +179,20 @@ install() {
179179 return 0
180180}
181181
182+ # Performs development environment initialization tasks.
183+ #
184+ # $1 - log file
185+ dev_init () {
186+ echo ' Initializing development environment...' >&2
187+ make init >> " $1 " 2>&1
188+ if [[ " $? " -ne 0 ]]; then
189+ echo ' Error occurred during initialization.' >&2
190+ return 1
191+ fi
192+ echo ' Initialization successful.' >&2
193+ return 0
194+ }
195+
182196# Initializes the environment.
183197#
184198# $1 - Node.js version
@@ -196,6 +210,10 @@ init() {
196210 if [[ " $? " -ne 0 ]]; then
197211 return 1
198212 fi
213+ dev_init " $2 "
214+ if [[ " $? " -ne 0 ]]; then
215+ return 1
216+ fi
199217 return 0
200218}
201219
You can’t perform that action at this time.
0 commit comments