Example #1
0
    def start(self, **kwargs):
        """
        Create and return the builder.
        
        @return: The Google App Engine builder dict
        @rtype: C{dict}
        """
        # Setup buildsteps
        self.run_gae(self.src)

        return Builder.start(self, **kwargs)
Example #2
0
    def start(self, **kwargs):
        """
        Run the builder.
        
        @return: Add the buildsteps and return the builder dict.
        """
        # Name of gzipped tarball that contains the compiled egg that gets
        # uploaded from the slave to the master
        eggTarball = 'pyamf-egg-%s.tar.gz' % (self.name)

        # Checkout source code
        self.checkout()

        # Setup build steps
        self.compile()
        self.test()
        self.install('./install')
        self.compile(True)
        self.test(True)
        self.install('./install', True)
        self.dist('./build/dist')
        self.pyflakes('pyamf')

        # Download AMF dumps gzipped tarball to slaves
        self.download('~/'+self.dumps, self.dumps)

        # Run parser script on AMF dumps
        self.unpack_dumps(self.dumps)
        self.parse_dumps()

        # Build .egg file for trunk and upload to the master
        egg_path = os.path.join(self.destFolder, eggTarball)
        self.compress_egg('./build/dist', eggTarball)
        self.upload(eggTarball, egg_path)
        self.master(['mv ' + egg_path + ' ' + self.webFolder])

        return Builder.start(self, **kwargs)