Skip to content

Commit 8563cdf

Browse files
committed
Initialize development environment after installing node deps
1 parent ce27846 commit 8563cdf

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ machine:
1414
# Customize the repository after checkout:
1515
checkout:
1616
post:
17-
- 'git init && make init'
17+
- 'git init'
1818

1919

2020
# Custom environment dependencies:

tools/ci/circle/script

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)