Skip to content

Commit

Permalink
NOISSUE - Add compile test to CI (#743)
Browse files Browse the repository at this point in the history
* Add compile tests to CI script

Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>

* Fix parallelization flag

Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
  • Loading branch information
dborovcanin authored and drasko committed May 13, 2019
1 parent e46164f commit f5bb65d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/ci.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This script contains commands to be executed by the CI tool.
NPROC=$(nproc)

setup_protoc() {
echo "Setting up protoc..."
Expand Down Expand Up @@ -32,6 +33,7 @@ setup_mf() {
exit 1
fi
done
make -j$NPROC
}

setup() {
Expand All @@ -56,7 +58,7 @@ run_test() {
push() {
if test -n "$BRANCH_NAME" && test "$BRANCH_NAME" = "master"; then
echo "Pushing Docker images..."
make latest
make -j$NPROC latest
fi
}

Expand Down

0 comments on commit f5bb65d

Please sign in to comment.