Adding folder for ci scripts, and initial script for packaging repo
This commit is contained in:
18
ci/build.sh
Normal file
18
ci/build.sh
Normal file
@@ -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}
|
||||
Reference in New Issue
Block a user