]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
remove python-bindings 50/head
authorAlfredo Deza <adeza@redhat.com>
Fri, 24 Apr 2015 12:03:38 +0000 (08:03 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 24 Apr 2015 12:03:38 +0000 (08:03 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
python-bindings/config/definitions/build.sh [deleted file]
python-bindings/config/definitions/ensure_python_dependencies.sh [deleted file]
python-bindings/config/definitions/python-bindings.yml [deleted file]

diff --git a/python-bindings/config/definitions/build.sh b/python-bindings/config/definitions/build.sh
deleted file mode 100644 (file)
index 0606472..0000000
+++ /dev/null
@@ -1,186 +0,0 @@
-#!/bin/sh
-
-# This is the script that runs inside Jenkins.
-# http://jenkins.ceph.com/job/python-bindings/
-
-set -x
-set -e
-
-# Jenkins will set $RELEASE as a parameter in the job configuration.
-if $RELEASE ; then
-        # This is a formal release. Sign it with the release key.
-        export GNUPGHOME=/home/jenkins-build/build/gnupg.ceph-release/
-        export KEYID=17ED316D
-else
-        # This is an automatic build. Sign it with the autobuild key.
-        export GNUPGHOME=/home/jenkins-build/build/gnupg.autobuild/
-        export KEYID=03C3951A
-fi
-
-HOST=$(hostname --short)
-echo "Building on ${HOST}"
-echo "  DIST=${DIST}"
-echo "  BPTAG=${BPTAG}"
-echo "  KEYID=${KEYID}"
-echo "  WS=$WORKSPACE"
-echo "  PWD=$(pwd)"
-echo "  BRANCH=$BRANCH"
-
-case $HOST in
-gitbuilder-*-rpm*)
-        pwd
-        rm -rf debian-repo
-        rm -rf dist
-        rm -f *.changes *.dsc *.gz *.diff
-
-        # Tag tree and update version number in change log and
-        # in setup.py before building.
-
-        REPO=rpm-repo
-        KEYID=${KEYID:-03C3951A}  # Default is autobuild-key
-        BUILDAREA=./rpmbuild
-        DIST=el6
-        RPM_BUILD=$(lsb_release -s -c)
-
-        cd src/pybind/ceph
-        if [ ! -e setup.py ] ; then
-            echo "Are we in the right directory"
-            exit 1
-        fi
-
-        if gpg --list-keys 2>/dev/null | grep -q ${KEYID} ; then
-            echo "Signing packages and repo with ${KEYID}"
-        else
-            echo "Package signing key (${KEYID}) not found"
-            echo "Have you set \$GNUPGHOME ? "
-            exit 3
-        fi
-
-        if ! CREATEREPO=`which createrepo` ; then
-            echo "Please install the createrepo package"
-            exit 4
-        fi
-
-        # Create Tarball
-        python setup.py sdist --formats=bztar
-
-        # Build RPM
-        mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
-        BUILDAREA=`readlink -fn ${BUILDAREA}`   ### rpm wants absolute path
-        # XXX make this spec file configurable
-        cp python-ceph.spec ${BUILDAREA}/SPECS
-        cp dist/*.tar.bz2 ${BUILDAREA}/SOURCES
-        echo "buildarea is: ${BUILDAREA}"
-        rpmbuild -ba --define "_topdir ${BUILDAREA}" --define "_unpackaged_files_terminate_build 0" ${BUILDAREA}/SPECS/ceph-deploy.spec
-
-        # create repo
-        DEST=${REPO}/${DIST}
-        mkdir -p ${REPO}/${DIST}
-        cp -r ${BUILDAREA}/*RPMS ${DEST}
-
-        # Sign all the RPMs for this release
-        rpm_list=`find ${REPO} -name "*.rpm" -print`
-        rpm --addsign --define "_gpg_name ${KEYID}" $rpm_list
-
-        # Construct repodata
-        for dir in ${DEST}/SRPMS ${DEST}/RPMS/*
-        do
-            if [ -d $dir ] ; then
-                createrepo $dir
-                gpg --detach-sign --armor -u ${KEYID} $dir/repodata/repomd.xml
-            fi
-        done
-
-        mv debian-repo $WORKSPACE/.
-        cd $WORKSPACE
-        mkdir -p dist
-        mv *.changes *.dsc *.deb *.tar.gz dist/.
-        ;;
-
-gitbuilder-cdep-deb* | tala* | mira*)
-        pwd
-        rm -rf rpm-repo dist/* build/rpmbuild
-        pwd
-        #cd build
-
-        # Tag tree and update version number in change log and
-        # in setup.py before building.
-
-        REPO=debian-repo
-        COMPONENT=main
-        KEYID=${KEYID:-03C3951A}  # default is autobuild keyid
-        DEB_DIST="sid wheezy squeeze quantal precise oneiric natty raring"
-        DEB_BUILD=$(lsb_release -s -c)
-        RELEASE=1
-
-        if [ ! -d debian ] ; then
-            echo "Are we in the right directory"
-            exit 1
-        fi
-
-        if gpg --list-keys 2>/dev/null | grep -q ${KEYID} ; then
-            echo "Signing packages and repo with ${KEYID}"
-        else
-            echo "Package signing key (${KEYID}) not found"
-            echo "Have you set \$GNUPGHOME ? "
-            exit 3
-        fi
-
-        # Clean up any leftover builds
-        #rm -f ../ceph-deploy*.dsc ../ceph-deploy*.changes ../ceph-deploy*.deb ../ceph-deploy.tgz
-        #rm -rf ./debian-repo
-
-        # Apply backport tag if release build
-        # I am going to jump out the window if this is not fixed and removed from the source
-        # of this package. There is absolutely **NO** reason why we need to hard code the
-        # DEBEMAIL like this.
-        if [ $RELEASE -eq 1 ] ; then
-            DEB_VERSION=$(dpkg-parsechangelog | sed -rne 's,^Version: (.*),\1, p')
-            BP_VERSION=${DEB_VERSION}${BPTAG}
-            DEBEMAIL="adeza@redhat.com" dch -D $DIST --force-distribution -b -v "$BP_VERSION" "$comment"
-            dpkg-source -b .
-        fi
-
-        # Build Package
-        echo "Building for dist: $DEB_BUILD"
-        dpkg-buildpackage -k$KEYID
-        if [ $? -ne 0 ] ; then
-            echo "Build failed"
-            exit 2
-        fi
-
-        # Build Repo
-        PKG=../python-ceph.changes
-        mkdir -p $REPO/conf
-        if [ -e $REPO/conf/distributions ] ; then
-            rm -f $REPO/conf/distributions
-        fi
-
-        for DIST in  $DEB_DIST ; do
-            cat <<EOF >> $REPO/conf/distributions
-Codename: $DIST
-Suite: stable
-Components: $COMPONENT
-Architectures: amd64 armhf i386 source
-Origin: Inktank
-Description: Ceph distributed file system
-DebIndices: Packages Release . .gz .bz2
-DscIndices: Sources Release .gz .bz2
-Contents: .gz .bz2
-SignWith: $KEYID
-
-EOF
-        done
-
-        echo "Adding package to repo, dist: $DEB_BUILD ($PKG)"
-        reprepro --ask-passphrase -b $REPO -C $COMPONENT --ignore=undefinedtarget --ignore=wrongdistribution include $DEB_BUILD $PKG
-
-        mv rpm-repo $WORKSPACE/.
-        cd $WORKSPACE
-        mkdir -p dist
-        ;;
-*)
-       echo "Can't determine build host type"
-        exit 4
-        ;;
-esac
diff --git a/python-bindings/config/definitions/ensure_python_dependencies.sh b/python-bindings/config/definitions/ensure_python_dependencies.sh
deleted file mode 100644 (file)
index 8759f6e..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-#
-# This script ensures that a Python virtualenv is installed and available for
-# a specific part of the build, including dependencies.
-#
-
-# Create the virtualenv
-virtualenv venv
-. venv/bin/activate
-
-# Define and ensure the PIP cache
-PIP_SDIST_INDEX="$HOME/.cache/pip"
-mkdir -p $PIP_SDIST_INDEX
-
-# Install the package by trying with the cache first, otherwise doing a download only, and then
-# trying to install from the cache again.
-if ! venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index amauta; then
-    venv/bin/pip install --download-directory="$PIP_SDIST_INDEX" amauta
-    venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index amauta
-fi
-
diff --git a/python-bindings/config/definitions/python-bindings.yml b/python-bindings/config/definitions/python-bindings.yml
deleted file mode 100644 (file)
index 39138ea..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-- job:
-    name: python-bindings
-    node: gitbuilder-cdep-deb-cloud-precise-amd64-basic
-    project-type: matrix
-    defaults: global
-    disabled: false
-    display-name: 'Ceph Python Bindings'
-    concurrent: true
-    quiet-period: 5
-    block-downstream: false
-    block-upstream: false
-    retry-count: 3
-
-    triggers:
-      - pollscm: "H * * * *"
-
-    parameters:
-      - string:
-          name: BRANCH
-          description: "The git branch or tag to build"
-
-      - bool:
-          name: RELEASE
-          description: "If checked, it will use the key for releases, otherwise it will use the autosign one."
-
-    scm:
-      - git:
-          url: https://github.com/ceph/ceph.git
-          branches:
-            #- master
-            #- firefly
-            #- giant
-            #- next
-            - $BRANCH
-          browser: githubweb
-          browser-url: http://github.com/ceph/ceph.git
-          timeout: 20
-
-    execution-strategy:
-      combination-filter: |
-        (Arch=="x86_64")  || (Arch=="armhf" && (Dist=="quantal"))
-
-    axes:
-      - axis:
-          type: label-expression
-          name: Arch
-          values:
-            - x86_64
-      - axis:
-          type: label-expression
-          name: Dist
-          values:
-            - squeeze
-            - wheezy
-            - precise
-            - trusty
-            - centos6.3
-            - centos6.4
-            - centos6.5
-            - centos7
-            - rhel6.3
-            - rhel6.4
-            - rhel6.5
-            - fedora20
-            - opensuse12.2
-            - sles11sp2
-            - rhel7
-
-    builders:
-      # XXX Skipping python dependencies for now
-      #- shell:
-      #    !include-raw ensure_python_dependencies.sh
-      - shell:
-          !include-raw build.sh
-      #- shell: "venv/bin/amauta python-bindings"