Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

90 lines (78 sloc) 3.422 kB
python := "$(shell { command -v python2.7 || command -v python; } 2>/dev/null)"
# Set the relative path to installed binaries under the project virtualenv.
# NOTE: Creating a virtualenv on Windows places binaries in the 'Scripts' directory.
bin_dir := $(shell $(python) -c 'import sys; bin = "Scripts" if sys.platform == "win32" else "bin"; print(bin)')
env_bin := env/$(bin_dir)
env: $(env_bin)/swaddle
$(python) ./vendor/virtualenv-1.7.1.2.py \
--unzip-setuptools \
--prompt="[gittip] " \
--never-download \
--extra-search-dir=./vendor/ \
--distribute \
./env/
./$(env_bin)/pip install -r requirements.txt
./$(env_bin)/pip install ./vendor/nose-1.1.2.tar.gz
./$(env_bin)/pip install -e ./
$(env_bin)/swaddle:
$(python) ./vendor/virtualenv-1.7.1.2.py \
--unzip-setuptools \
--prompt="[gittip] " \
--never-download \
--extra-search-dir=./vendor/ \
--distribute \
./env/
./$(env_bin)/pip install -r requirements.txt
./$(env_bin)/pip install ./vendor/nose-1.1.2.tar.gz
./$(env_bin)/pip install -e ./
clean:
rm -rf env *.egg *.egg-info tests/env gittip.css
find . -name \*.pyc -delete
local.env:
echo "Creating a local.env file ..."
echo
echo "CANONICAL_HOST=" > local.env
echo "CANONICAL_SCHEME=http" >> local.env
echo "DATABASE_URL=postgres://gittip@localhost/gittip" >> local.env
echo "DATABASE_MAXCONN=10" >> local.env
echo "STRIPE_SECRET_API_KEY=1" >> local.env
echo "STRIPE_PUBLISHABLE_API_KEY=1" >> local.env
echo "BALANCED_API_SECRET=90bb3648ca0a11e1a977026ba7e239a9" >> local.env
echo "GITHUB_CLIENT_ID=3785a9ac30df99feeef5" >> local.env
echo "GITHUB_CLIENT_SECRET=e69825fafa163a0b0b6d2424c107a49333d46985" >> local.env
echo "GITHUB_CALLBACK=http://localhost:8537/on/github/associate" >> local.env
echo "TWITTER_CONSUMER_KEY=QBB9vEhxO4DFiieRF68zTA" >> local.env
echo "TWITTER_CONSUMER_SECRET=mUymh1hVMiQdMQbduQFYRi79EYYVeOZGrhj27H59H78" >> local.env
echo "TWITTER_CALLBACK=http://127.0.0.1:8537/on/twitter/associate" >> local.env
run: env local.env
./$(env_bin)/swaddle local.env ./$(env_bin)/aspen \
--www_root=www/ \
--project_root=. \
--show_tracebacks=yes \
--changes_reload=yes \
--network_address=:8537
test: env tests/env data
./$(env_bin)/swaddle tests/env ./$(env_bin)/nosetests ./tests/
tests: test
tests/env:
echo "Creating a tests/env file ..."
echo
echo "CANONICAL_HOST=" > tests/env
echo "CANONICAL_SCHEME=http" >> tests/env
echo "DATABASE_URL=postgres://gittip-test@localhost/gittip-test" >> tests/env
echo "DATABASE_MAXCONN=10" >> tests/env
echo "STRIPE_SECRET_API_KEY=1" >> tests/env
echo "STRIPE_PUBLISHABLE_API_KEY=1" >> tests/env
echo "BALANCED_API_SECRET=90bb3648ca0a11e1a977026ba7e239a9" >> tests/env
echo "GITHUB_CLIENT_ID=3785a9ac30df99feeef5" >> tests/env
echo "GITHUB_CLIENT_SECRET=e69825fafa163a0b0b6d2424c107a49333d46985" >> tests/env
echo "GITHUB_CALLBACK=http://localhost:8537/on/github/associate" >> tests/env
echo "TWITTER_CONSUMER_KEY=QBB9vEhxO4DFiieRF68zTA" >> tests/env
echo "TWITTER_CONSUMER_SECRET=mUymh1hVMiQdMQbduQFYRi79EYYVeOZGrhj27H59H78" >> tests/env
echo "TWITTER_CALLBACK=http://127.0.0.1:8537/on/twitter/associate" >> tests/env
data: env
./makedb.sh gittip-test gittip-test
./$(env_bin)/swaddle tests/env ./$(env_bin)/python ./gittip/testing/__init__.py
css:
scss -t compressed templates/gittip.scss gittip.css
mv gittip.css www/assets/%version/gittip.css
Jump to Line
Something went wrong with that request. Please try again.