build: run-ci makefile rule
authorAlexis Campailla <alexis@janeasystems.com>
Wed, 8 Jul 2015 14:11:24 +0000 (16:11 +0200)
committerAlexis Campailla <alexis@janeasystems.com>
Fri, 10 Jul 2015 15:05:17 +0000 (17:05 +0200)
Adding a single rule to be called from Jenkins.

Jenkins jobs typically call:
python ./configure
make -j $(getconf _NPROCESSORS_ONLN)
make test-ci

After this change, we can have Jenkins call:
make run-ci -j $(getconf _NPROCESSORS_ONLN)

This allows us to customize how we call configure
for different repos or branches (e.g. joyent\node).

PR-URL: https://github.com/nodejs/io.js/pull/2134
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Makefile

index a59f55c0dc144f55fdc8efa791bda2f0c897abf1..fcc0b83720ecfe68d7ed2c26c4e7583b1263c496 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -185,6 +185,11 @@ docopen: out/doc/api/all.html
 docclean:
        -rm -rf out/doc
 
+run-ci:
+       $(PYTHON) ./configure $(CONFIG_FLAGS)
+       $(MAKE)
+       $(MAKE) test-ci
+
 RAWVER=$(shell $(PYTHON) tools/getnodeversion.py)
 VERSION=v$(RAWVER)
 
@@ -464,4 +469,4 @@ lint: jslint cpplint
        dynamiclib test test-all test-addons build-addons website-upload pkg \
        blog blogclean tar binary release-only bench-http-simple bench-idle \
        bench-all bench bench-misc bench-array bench-buffer bench-net \
-       bench-http bench-fs bench-tls cctest
+       bench-http bench-fs bench-tls cctest run-ci