From: Jean Privat Date: Mon, 24 Aug 2015 17:56:56 +0000 (-0400) Subject: Merge: Beefup check contrib X-Git-Tag: v0.7.8~70 X-Git-Url: http://nitlanguage.org?hp=283e1122db0800895153a365873c5eccd40952de Merge: Beefup check contrib This change make the caller pass the additional `make` rules to execute. So now `check` or `android` can be given to mass build projects that expose such rules. Pull-Request: #1652 Reviewed-by: Alexandre Terrasa Reviewed-by: Lucas Bajolet --- diff --git a/lib/json/Makefile b/lib/json/Makefile index 8d10e1e..8d0650f 100644 --- a/lib/json/Makefile +++ b/lib/json/Makefile @@ -1,2 +1,7 @@ -compile-parser: - ../../contrib/nitcc/src/nitcc ../../contrib/nitcc/examples/json.sablecc +NITCCDIR=../../contrib/nitcc/ + +compile-parser: $(NITCCDIR)src/nitcc + $(NITCCDIR)src/nitcc $(NITCCDIR)examples/json.sablecc + +$(NITCCDIR)src/nitcc: + make -C $(NITCCDIR) diff --git a/lib/markdown/.gitignore b/lib/markdown/.gitignore new file mode 100644 index 0000000..048b768 --- /dev/null +++ b/lib/markdown/.gitignore @@ -0,0 +1 @@ +nitmd diff --git a/misc/jenkins/check_contrib.sh b/misc/jenkins/check_contrib.sh index 320dac8..fafeb92 100755 --- a/misc/jenkins/check_contrib.sh +++ b/misc/jenkins/check_contrib.sh @@ -13,12 +13,17 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Check the build and the execution of software in examples/ and contrib/ +# Check the build and the execution of software in lib/, examples/ and contrib/ # The script must be run from the root Nit directory. # # various .xml junit file will be generated in the root directory for jenkins. +# +# Arguments will be additional `make` rules to execute. eg. +# +# check_contrib.sh check android -projects=`echo examples/*/Makefile contrib/*/Makefile` +projects=`echo lib/*/Makefile examples/*/Makefile contrib/*/Makefile` +rules=$* failed= for p in $projects; do @@ -26,20 +31,19 @@ for p in $projects; do name=`basename "$dir"` echo "*** make $dir ***" if misc/jenkins/unitrun.sh "cmd-$name-make" make -C "$dir"; then - # Make OK, is there a `check` rule? - make -C "$dir" check -n 2>/dev/null || continue - echo "*** makecheck $dir ***" - if misc/jenkins/unitrun.sh "cmd-$name-makecheck" make -C "$dir" check; then - : - else - failed="$failed $name-check" - fi - + # Make OK. Check additional rules if they exists + for rule in $rules; do + make -C "$dir" $rule -n 2>/dev/null || + continue + echo "*** make$rule $dir ***" + misc/jenkins/unitrun.sh "cmd-$name-make$rule" make -C "$dir" $rule || + failed="$failed $name-$rule" + done else failed="$failed $name" fi done -grep '