From 6b0783936f67559f51005348816174277c1ef4f5 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Tue, 21 Oct 2014 19:07:03 -0400 Subject: [PATCH 1/2] Add .command as a Shell file extension --- lib/linguist/languages.yml | 1 + samples/Shell/build.command | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 samples/Shell/build.command diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 56032ebb..aa649de8 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -2202,6 +2202,7 @@ Shell: - .bash - .bats - .cgi + - .command - .fcgi - .tmux - .zsh diff --git a/samples/Shell/build.command b/samples/Shell/build.command new file mode 100644 index 00000000..8e793c3a --- /dev/null +++ b/samples/Shell/build.command @@ -0,0 +1,30 @@ +set -e + +echo "/************/" +echo "/* BUILDING */" +echo "/************/" +echo "" + +cd `dirname $0` + +cd build + +cmake .. + +make + +echo "" +echo "/***********/" +echo "/* TESTING */" +echo "/***********/" +echo "" + +# ctest .. + +make Experimental + +echo "" +echo "/***********/" +echo "/* SUCCESS */" +echo "/***********/" +echo "" From a7b8e38bf33472b1436f7214aa7410d9d48dbab7 Mon Sep 17 00:00:00 2001 From: Arfon Smith Date: Thu, 23 Oct 2014 12:16:02 +0100 Subject: [PATCH 2/2] CI step for samples --- script/cibuild | 1 + 1 file changed, 1 insertion(+) diff --git a/script/cibuild b/script/cibuild index d472f56e..f2596ea3 100755 --- a/script/cibuild +++ b/script/cibuild @@ -14,4 +14,5 @@ set +x mkdir -p ./vendor/gems bundle install --local --path ./vendor/gems +bundle exec rake samples bundle exec rake