Skip to content

Commit

Permalink
script to package rpm on jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
domsj committed May 28, 2015
1 parent 8e0c330 commit 81af3e9
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions jenkins/package_rpm/005_install_ubuntu_dependencies.sh
@@ -0,0 +1,9 @@
#!/bin/bash -xue

sudo aptitude update || true

for PKG in libssl-dev \
texlive texlive-latex-extra \
git help2man python-epydoc graphviz libsnappy-dev; do
sudo aptitude install -yVDq $PKG
done
16 changes: 16 additions & 0 deletions jenkins/package_rpm/008_install_dev_env.sh
@@ -0,0 +1,16 @@
#!/bin/bash -xue

which opam > /dev/null || { echo 'opam not found!'; exit 1; }
{ opam remote list | grep Incubaid/opam-repository-devel > /dev/null; } || { opam remote add incubaid-devel -k git git://github.com/Incubaid/opam-repository-devel.git; }

opam update -y
opam switch 4.02.1
eval `opam config env`

opam remove -y camltc
opam install -y conf-libev
opam install -y camlbz2
opam install -y lwt.2.4.7
opam install -y camltc.0.9.2
opam install -y bisect
opam install -y quickcheck
12 changes: 12 additions & 0 deletions jenkins/package_rpm/010_build.sh
@@ -0,0 +1,12 @@
#!/bin/bash -xue

eval `opam config env`

ln -s '../../' ./redhat/SOURCES/arakoon-$VERSION
ARAKOON_HOME=`pwd`
cd ~/
rm rpmbuild | true
ln -s $ARAKOON_HOME/redhat rpmbuild
cd rpmbuild
rpmbuild -ba SPECS/arakoon.spec

1 change: 1 addition & 0 deletions jenkins/package_rpm/seed
1 change: 1 addition & 0 deletions redhat/SOURCES/arakoon-1.8.3

0 comments on commit 81af3e9

Please sign in to comment.