Beispiel #1
0
#!/usr/bin/env python

from builder_ckanext import builder as b

b.run(
    'Emptying database',
    '/home/buildslave/drop-all-tables.sh %(ckan_instance_name)s buildslave localhost'
)

assert b.env['build_dir'].startswith(
    '/home/buildslave/ckanext/build')  # double check
b.run('Emptying build folder', 'rm -rf %(build_dir)s/*')

b.run('Create pyenv', 'virtualenv %(pyenv_dir)s')

b.run(
    'Install ckanext-dgu',
    '%(pyenv_dir)s/bin/pip -E %(pyenv_dir)s install -e git+http://github.com/okfn/ckanext-dgu#egg=ckanext-dgu'
)

b.run(
    'Install ckanext-dgu dependencies',
    '%(pyenv_dir)s/bin/pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckanext-dgu/requires/lucid_missing.txt'
)

b.run(
    'Install ckan dependencies',
    '%(pyenv_dir)s/bin/pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckan/pip-requirements.txt'
)

b.run(
#!/usr/bin/env python

from builder_ckanext import builder as b

b.run('Remove release version of ckanclient',
      'rm -rf %(pyenv_dir)s/src/ckanclient')

b.run(
    'Install latest ckanclient',
    'pip -E %(pyenv_dir)s install -e git+http://github.com/okfn/ckanclient#egg=ckanclient'
)

b.run(
    'Quick tests...',
    '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/ckanclient/ckanclient/tests/ --ckan --with-pylons=%(src_dir)s/ckanclient/test.ini'
)

b.run(
    'Full tests...',
    '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/ckanclient/ckanclient/tests/ --ckan --with-pylons=%(src_dir)s/ckan/test-core.ini'
)
#!/usr/bin/env python

from builder_ckanext import builder as b

b.run(
    'Remove potential conflicts',
    'rm -rf %(pyenv_dir)s/src/ckanext-* %(pyenv_dir)s/src/ckanclient %(pyenv_dir)s/src/datautildate %(pyenv_dir)s/src/owslib %(pyenv_dir)s/src/apachemiddleware %(pyenv_dir)s/lib/python2.6/site-packages/ckanclient*'
)

b.run(
    'Install ckanext-dgu',
    'pip -E %(pyenv_dir)s install -e git+http://github.com/okfn/ckanext-dgu#egg=ckanext-dgu'
)

b.run(
    'Install latest ckanext-dgu dependencies',
    'pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckanext-dgu/pip-requirements-latest.txt'
)

b.run(
    'Install ckanext-harvest dependencies',
    'pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckanext-harvest/pip-requirements.txt'
)

#b.run('Remove older ckanclient installed by ckanext-harvest pip-requirements.',
#      'rm -rf %(pyenv_dir)s/lib/python2.6/site-packages/ckanclient')

b.run(
    'Quick tests',
    '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/ckanext-dgu/ckanext/dgu/tests/ --ckan --with-pylons=%(src_dir)s/ckanext-dgu/test.ini'
)
#!/usr/bin/env python

from builder_ckanext import builder as b

b.run('Remove release version of ckanclient',
      'rm -rf %(pyenv_dir)s/src/ckanclient')

b.run('Install latest ckanclient',
      'pip -E %(pyenv_dir)s install -e git+http://github.com/okfn/ckanclient#egg=ckanclient')

b.run('Quick tests...',
      '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/ckanclient/ckanclient/tests/ --ckan --with-pylons=%(src_dir)s/ckanclient/test.ini')

b.run('Full tests...',
      '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/ckanclient/ckanclient/tests/ --ckan --with-pylons=%(src_dir)s/ckan/test-core.ini')

#!/usr/bin/env python

from builder_ckanext import builder as b
b.env['revision'] = 'default'
b.env['extension_name'] = 'stats'

b.run('Install ckanext-%(extension_name)s',
      'pip -E %(pyenv_dir)s install -e git+http://github.com/okfn/ckanext-%(extension_name)s#egg=ckanext-%(extension_name)s')

#b.run('Install dependencies',
#      'pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckanext-%(extension_name)s/pip-requirements.txt')

b.run('Quick tests',
      '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/ckanext-%(extension_name)s/ckanext/%(extension_name)s/tests/ --ckan --with-pylons=%(src_dir)s/ckanext-stats/test.ini')

b.run('Full tests',
      '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/ckanext-%(extension_name)s/ckanext/%(extension_name)s/tests/ --ckan --with-pylons=%(src_dir)s/ckanext-stats/test-core.ini')

Beispiel #6
0
#!/usr/bin/env python

from builder_ckanext import builder as b
b.env['revision'] = 'default'

b.run(
    'Emptying database',
    '/home/buildslave/drop-all-tables.sh %(ckan_instance_name)s buildslave localhost'
)

assert b.env['build_dir'].startswith(
    '/home/buildslave/ckanext/build')  # double check
b.run('Emptying build folder', 'rm -rf %(build_dir)s/*')

b.run('Getting fabfile',
      'wget -O fabfile.py %(ckan_repo_files)s/master/fabfile.py')

b.run(
    'Install CKAN with fabfile',
    'fab config_local:%(build_dir)s,%(ckan_instance_name)s,db_host=localhost,db_pass=biomaik15,no_sudo=True,skip_setup_db=True,revision=%(revision)s deploy'
)

b.run(
    'Copying config for running nosetests',
    'cp %(build_dir)s/%(ckan_instance_name)s/%(ckan_instance_name)s.ini %(src_dir)s/ckan/development.ini'
)

b.run(
    'Install ckanext-importlib',
    'pip -E %(pyenv_dir)s install -e git+http://github.com/okfn/ckanext-importlib#egg=ckanext-importlib'
)
#!/usr/bin/env python

from builder_ckanext import builder as b

b.run("Emptying database", "/home/buildslave/drop-all-tables.sh %(ckan_instance_name)s buildslave localhost")

assert b.env["build_dir"].startswith("/home/buildslave/ckanext/build")  # double check
b.run("Emptying build folder", "rm -rf %(build_dir)s/*")

b.run("Create pyenv", "virtualenv %(pyenv_dir)s")

b.run(
    "Install ckanext-dgu",
    "%(pyenv_dir)s/bin/pip -E %(pyenv_dir)s install -e git+http://github.com/okfn/ckanext-dgu#egg=ckanext-dgu",
)

b.run(
    "Install ckanext-dgu dependencies",
    "%(pyenv_dir)s/bin/pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckanext-dgu/requires/lucid_missing.txt",
)

b.run(
    "Install ckan dependencies",
    "%(pyenv_dir)s/bin/pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckan/pip-requirements.txt",
)

b.run(
    "Install ckanext-harvest dependencies",
    "%(pyenv_dir)s/bin/pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckanext-harvest/pip-requirements.txt",
)
#!/usr/bin/env python

from builder_ckanext import builder as b
b.env['revision'] = 'default'

b.run('Emptying database', 
      '/home/buildslave/drop-all-tables.sh %(ckan_instance_name)s buildslave localhost')

assert b.env['build_dir'].startswith('/home/buildslave/ckanext/build') # double check
b.run('Emptying build folder',
      'rm -rf %(build_dir)s/*')

b.run('Getting fabfile',
      'wget -O fabfile.py %(ckan_repo_files)s/master/fabfile.py')

b.run('Install CKAN with fabfile',
      'fab config_local:%(build_dir)s,%(ckan_instance_name)s,db_host=localhost,db_pass=biomaik15,no_sudo=True,skip_setup_db=True,revision=%(revision)s deploy')

b.run('Copying config for running nosetests',
      'cp %(build_dir)s/%(ckan_instance_name)s/%(ckan_instance_name)s.ini %(src_dir)s/ckan/development.ini')

b.run('Install ckanext-importlib',
      'pip -E %(pyenv_dir)s install -e git+http://github.com/okfn/ckanext-importlib#egg=ckanext-importlib')

b.run('Install ckanext-importlib dependencies',
      'pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckanext-importlib/pip-requirements.txt')

b.run('Quick tests',
      '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/ckanext-importlib/ckanext/importlib/tests/ --ckan --with-pylons=%(src_dir)s/ckanext-importlib/test.ini')

b.run('Full tests',
Beispiel #9
0
#!/usr/bin/env python

from builder_ckanext import builder as b

b.run('Remove potential conflicts',
      'rm -rf %(pyenv_dir)s/src/datautildate')

b.run('Install datautildate',
      'pip -E %(pyenv_dir)s install -e git+https://[email protected]/okfn/datautildate#egg=datautildate')

b.run('Install datautildate test deps manually',
      'pip -E %(pyenv_dir)s install nose xlrd gdata')

b.run('Tests',
      '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/datautildate/datautildate/tests')

#!/usr/bin/env python

from builder_ckanext import builder as b

b.run('Remove potential conflicts',
      'rm -rf %(pyenv_dir)s/src/ckanext-* %(pyenv_dir)s/src/ckanclient %(pyenv_dir)s/src/datautildate %(pyenv_dir)s/src/owslib %(pyenv_dir)s/src/apachemiddleware %(pyenv_dir)s/lib/python2.6/site-packages/ckanclient*')

b.run('Install ckanext-dgu',
      'pip -E %(pyenv_dir)s install -e git+http://github.com/okfn/ckanext-dgu#egg=ckanext-dgu')

b.run('Install latest ckanext-dgu dependencies',
      'pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckanext-dgu/pip-requirements-latest.txt')

b.run('Install ckanext-harvest dependencies',
      'pip -E %(pyenv_dir)s install -r %(pyenv_dir)s/src/ckanext-harvest/pip-requirements.txt')

#b.run('Remove older ckanclient installed by ckanext-harvest pip-requirements.',
#      'rm -rf %(pyenv_dir)s/lib/python2.6/site-packages/ckanclient')

b.run('Quick tests',
      '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/ckanext-dgu/ckanext/dgu/tests/ --ckan --with-pylons=%(src_dir)s/ckanext-dgu/test.ini')

b.run('Full tests',
      '. %(pyenv_dir)s/bin/activate; %(pyenv_dir)s/bin/nosetests -v %(src_dir)s/ckanext-dgu/ckanext/dgu/tests/ --ckan --with-pylons=%(src_dir)s/ckanext-dgu/test-core.ini')