Skip to content

Instantly share code, notes, and snippets.

@subosito
Created September 2, 2013 11:44
Show Gist options
  • Save subosito/6412007 to your computer and use it in GitHub Desktop.
Save subosito/6412007 to your computer and use it in GitHub Desktop.
sixpack-go build!
#!/usr/bin/env python
from sixpack import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Sixpack',
version=__version__,
author='SeatGeek',
author_email='[email protected]',
packages=['sixpack', 'sixpack.test'],
scripts=['bin/sixpack', 'bin/sixpack-web'],
url='http://github.com/seatgeek/sixpack',
license=open('LICENSE.txt').read(),
classifiers=[
'Programming Language :: Python :: 2.7',
],
description='A/B testing framework under active development at SeatGeek',
long_description=open('README.rst').read() + '\n\n' +
open('CHANGES.rst').read(),
tests_require=['nose'],
test_suite='nose.collector',
install_requires=open('requirements.txt').readlines(),
include_package_data=True,
)
redis_port: 6379 # Redis port
redis_host: localhost # Redis host
redis_prefix: sixpack # all Redis keys will be prefixed with this
redis_db: 15 # DB number in redis
enable_whiplash: False # Enable the whiplash/multi-armed bandit alternative algorithm
# The regex to match for robots
robot_regex: $^|trivial|facebook|MetaURI|butterfly|google|amazon|goldfire|sleuth|xenu|msnbot|SiteUptime|Slurp|WordPress|ZIBB|ZyBorg|pingdom|bot|yahoo|slurp|java|fetch|spider|url|crawl|oneriot|abby|commentreader|twiceler
ignored_ip_addresses: [] # List of IP
asset_path: gen # Path for compressed assets to live. This path is RELATIVE to sixpack/static
secret_key: "penguins"
@subosito
Copy link
Author

subosito commented Sep 2, 2013

Drone.io settings:

# Environment variables
SIXPACK_CONFIG=/home/ubuntu/src/github.com/subosito/sixpack-go/sixpack.yml

# Build script
wget https://gist.github.com/subosito/6412007/raw/5b9a910d1b56fdc26455d36a228612470e8ba7f9/sixpack.yml
wget https://pypi.python.org/packages/source/S/Sixpack/Sixpack-1.0.1.tar.gz
tar -zxvf Sixpack-1.0.1.tar.gz
cd Sixpack-1.0.1
wget https://gist.github.com/subosito/6412007/raw/b3500e11ae5bf6e5479bd0dabc633f959c11caaf/setup.py
chmod +x setup.py
sudo ./setup.py install
sixpack &
cd ../sixpack
go get
go build
go test -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment