예제 #1
0
import os
from jenkinsutils import BuildHelper

package = 'BlazeWeb'
type = 'install'

bh = BuildHelper(package, type)

# delete & re-create the venv
bh.venv_create()

# install package
bh.vecall('pip', 'install', package)

# import module as our "test"
bh.vecall('python', '-c', 'import blazeweb')
예제 #2
0
import os
from jenkinsutils import BuildHelper

package = 'SQLAlchemyBWC'
type = 'install'

bh = BuildHelper(package, type)

# delete & re-create the venv
bh.venv_create()

# install package
bh.vecall('pip', 'install', package)

# import module as our "test"
bh.vecall('python', '-c', 'import sqlalchemybwc')
예제 #3
0
from __future__ import absolute_import
import os
from jenkinsutils import BuildHelper

package = 'SAValidation'
type = 'install'

bh = BuildHelper(package, type)

# delete & re-create the venv
bh.venv_create()

# install package
bh.vecall('pip', 'install', package)

# change directory to one up so that we don't import the relative directory
# with our "test" below
os.chdir('..')

# import module as our "test"
bh.vecall('python', '-c', 'from __future__ import absolute_import;import savalidation')
예제 #4
0
import os
from jenkinsutils import BuildHelper

package = 'BlazeUtils'
type = 'build'

bh = BuildHelper(package, type)

# delete & re-create the venv
bh.venv_create()

# use easy_install for coverage so we get pre-compiled version on windows
bh.vepycall('easy_install', 'coverage')

# install other jenkins requirements
bh.pip_install_reqs('pip-jenkins-reqs.txt')

# install package w/ setuptools develop
bh.setuppy_develop()

# run tests & coverage
bh.vepycall(
    'nosetests', 'tests', '--with-xunit',
    '--with-xcoverage', '--cover-package=blazeutils', '--cover-tests',

)
from __future__ import absolute_import
import os
from jenkinsutils import BuildHelper

package = 'SAValidation'
type = 'build'

bh = BuildHelper(package, type)

# delete & re-create the venv
bh.venv_create()

# use easy_install for coverage so we get pre-compiled version on windows
bh.vepycall('easy_install', 'coverage')

# install other jenkins requirements
bh.pip_install_reqs('pip-jenkins-reqs.txt')

# install package w/ setuptools develop
bh.setuppy_develop()

# run tests & coverage
bh.vepycall(
    'nosetests',
    'savalidation',
    '--with-xunit',
    '--with-xcoverage',
    '--cover-package=savalidation',
    '--cover-tests',
)
예제 #6
0
import os
import sys

from jenkinsutils import BuildHelper

package = 'AuthBWC'
type = 'build'

bh = BuildHelper(package, type)

# delete & re-create the venv
bh.venv_create()

if sys.platform == 'win32':
    # have to install a specific version of lxml that has an egg available
    # pyquery uses lxml and will install the latest if we don't specify
    bh.vepycall('easy_install', 'lxml==2.3')

## install package w/ setuptools develop
bh.setuppy_develop()

## run tests
bh.vepycall('nosetests', 'authbwc_ta', '--with-xunit',
            '--blazeweb-package=authbwc_ta')
예제 #7
0
import os
from jenkinsutils import BuildHelper

package = 'BlazeWeb'
type = 'build'

bh = BuildHelper(package, type)

# delete & re-create the venv
bh.venv_create()

## install package w/ setuptools develop
bh.setuppy_develop()

# add our bin directory to PATH for subprocesses
bh.add_bin_to_path()

## run tests
bh.vepycall('nosetests', 'tests', '--with-xunit')
예제 #8
0
import os
from jenkinsutils import BuildHelper

package = 'SQLAlchemyBWC'
type = 'build'

bh = BuildHelper(package, type)

# delete & re-create the venv
bh.venv_create()

## install package w/ setuptools develop command
bh.setuppy_develop()

## run tests
bh.vepycall('nosetests', 'sqlalchemybwc_ta', '--with-xunit',
            '--blazeweb-package=sqlalchemybwc_ta')