Find file
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (37 sloc) 1.45 KB
BUILD_FOLDER=build
PROJECT_NAME=test-project
BUILD_PROJECT=${BUILD_FOLDER}/${PROJECT_NAME}
run:
cp -r htdocs/* ${BUILD_PROJECT}/htdocs
cp -r templates/* ${BUILD_PROJECT}/templates
echo "Autenticate with: username/password"
${BUILD_FOLDER}/bin/tracd --port 8080 \
--basic-auth="${PROJECT_NAME},${PWD}/${BUILD_FOLDER}/htpasswd,realm" \
${BUILD_PROJECT}
deps: clean
virtualenv ${BUILD_FOLDER}
@echo "Installing trac will take a while..."
${BUILD_FOLDER}/bin/pip install trac==0.12.5
${BUILD_FOLDER}/bin/trac-admin ${BUILD_PROJECT} \
initenv Test-Project sqlite:db/trac.db
htpasswd -b -c ${BUILD_FOLDER}/htpasswd username password
mkdir -p ${BUILD_PROJECT}/htdocs/css
mkdir -p ${BUILD_PROJECT}/htdocs/js
mkdir -p ${BUILD_PROJECT}/htdocs/img
wget -q \
http://twitter.github.com/bootstrap/assets/css/bootstrap.css\
-O ${BUILD_PROJECT}/htdocs/css/bootstrap.css
wget -q \
http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css\
-O ${BUILD_PROJECT}/htdocs/css/bootstrap-responsive.css
wget -q \
http://twitter.github.com/bootstrap/assets/img/glyphicons-halflings.png\
-O ${BUILD_PROJECT}/htdocs/img/glyphicons-halflings.png
wget -q \
http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\
-O ${BUILD_PROJECT}/htdocs/js/jquery.min.js
wget -q \
http://twitter.github.com/bootstrap/assets/js/bootstrap.min.js\
-O ${BUILD_PROJECT}/htdocs/js/bootstrap.min.js
clean:
rm -rf ${BUILD_FOLDER}