Skip to content

Commit

Permalink
[circle ci] build dependecies happybase and thrift as debian package …
Browse files Browse the repository at this point in the history
…and provide as artifacts
  • Loading branch information
dhardy92 committed Mar 6, 2015
1 parent f4fd9d5 commit ce148cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ dependencies:
- 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 1 thrift
- fpm -s python -t deb --iteration 1 happybase

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-thumbor-hbase_*.{deb,cache} $CIRCLE_ARTIFACTS
- mv python-*.deb ../python-thumbor-hbase_*.deb $CIRCLE_ARTIFACTS
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Vcs-Git: git://github.com/dhardy92/thumbor_hbase.git

Package: python-thumbor-hbase
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-happybase, python-thrift
Provides: ${python:Provides}
Description: Provide support for Hadoop HBase as storage for images in Thumbor.
This Python module provide support for Hadoop HBase as a large
Expand Down

0 comments on commit ce148cb

Please sign in to comment.