Skip to content

Commit

Permalink
[happybase] build from sources
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy92 committed Mar 9, 2015
1 parent 918b4fa commit 2b5645c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions circle.yml
Expand Up @@ -8,17 +8,19 @@ dependencies:
cache_directories:
- "~/docker"
override:
- mkdir -p ~/docker
- if [ ! -e ~/docker/hbase.tar ]; then docker build -t "dhardy92/hbase" . && docker save "dhardy92/hbase" > ~/docker/hbase.tar; else docker load -i ~/docker/hbase.tar; fi
- pip install pyvows tornado_pyvows happybase thumbor coverage
- gem install fpm
- fpm -s python -t deb --iteration 2 --python-install-lib /usr/lib/python2.7/dist-packages -x "*.pyc" thrift
- fpm -s python -t deb --iteration 2 --python-install-lib /usr/lib/python2.7/dist-packages -x "*.pyc" happybase
- sudo dpkg -i ./python-thrift*.deb
- git clone git@github.com:wbolster/happybase.git && ( cd happybase && fpm -s python -t deb --iteration 2 --python-install-lib /usr/lib/python2.7/dist-packages -x "*.pyc" ./setup.py )
- sudo dpkg -i happybase/python-happybase*.deb
- mkdir -p ~/docker
- if [ ! -e ~/docker/hbase.tar ]; then docker build -t "dhardy92/hbase" . && docker save "dhardy92/hbase" > ~/docker/hbase.tar; else docker load -i ~/docker/hbase.tar; fi
- pip install pyvows tornado_pyvows thumbor coverage

test:
override:
- docker run -d -p 9090:9090 "dhardy92/hbase"; sleep 15
- pyvows -c -l thumbor_hbase
- debuild -i -us -uc -b && dpkg -c ../python-thumbor-hbase_*_*.deb
post:
- mv python-*.deb ../python-thumbor-hbase_*.deb $CIRCLE_ARTIFACTS
- mv python-thrift*.deb ../python-thumbor-hbase_*.deb happybase/python-happybase*.deb $CIRCLE_ARTIFACTS

0 comments on commit 2b5645c

Please sign in to comment.