Skip to content

Commit

Permalink
Add build step to initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Jan 27, 2017
1 parent 80bab59 commit efaa489
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tools/ci/circle/script
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,20 @@ install() {
return 0
}

# Builds add-ons.
#
# $1 - log file
build_addons() {
echo 'Building add-ons...' >&2
make C_COMPILER=gcc FORTRAN_COMPILER=gfortran install-addons >> "$1" 2>&1
if [[ "$?" -ne 0 ]]; then
echo 'Error occurred when building add-ons.' >&2
return 1
fi
echo 'Building add-ons successful.' >&2
return 0
}

# Initializes the Node.js environment.
#
# $1 - Node.js version
Expand All @@ -187,6 +201,10 @@ init() {
if [[ "$?" -ne 0 ]]; then
return 1
fi
build_addons "$2"
if [[ "$?" -ne 0 ]]; then
return 1
fi
return 0
}

Expand Down

0 comments on commit efaa489

Please sign in to comment.