From 8fe8bb66040cb7d85d379f57f70c3d776be64aec Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 19 Mar 2012 12:19:29 -0400 Subject: [PATCH] Adding folder for ci scripts, and initial script for packaging repo --- ci/build.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ci/build.sh diff --git a/ci/build.sh b/ci/build.sh new file mode 100644 index 0000000000..1973fdaf58 --- /dev/null +++ b/ci/build.sh @@ -0,0 +1,18 @@ +#sass sass:static/css -r templates/sass/bourbon/lib/bourbon.rb --style :compressed + +if [ -z "${GIT_COMMIT}" ]; then + GIT_COMMIT=$(git rev-parse HEAD) +fi + +if [ -z "${GIT_BRANCH}" ]; then + GIT_BRANCH=$(git symbolic-ref -q HEAD) + GIT_BRANCH=${GIT_BRANCH##refs/heads/} + GIT_BRANCH=${GIT_BRANCH:-HEAD} +fi + +if [ -z "${BUILD_NUMBER}" ]; then + BUILD_NUMBER=dev +fi + +ID=mitx-${GIT_BRANCH}-${BUILD_NUMBER}-${GIT_COMMIT} +tar --exclude=.git --exclude=build -czf build/${ID}.tgz ${REPO}