Ejemplo n.º 1
0
def testdownstream(args):
    """test downstream users of the Truffle API"""
    jruby_dir = 'jruby'
    jruby_repo = 'https://github.com/jruby/jruby.git'
    jruby_branch = 'truffle-head'
    git = mx.GitConfig()
    if os.path.exists('jruby'):
        git.run(['git', 'reset', 'HEAD', '--hard'],
                nonZeroIsFatal=True,
                cwd=jruby_dir)
        git.pull('jruby')
    else:
        git.clone(jruby_repo, jruby_dir)
        git.run(['git', 'checkout', jruby_branch],
                nonZeroIsFatal=True,
                cwd=jruby_dir)
    dev_version = _suite.release_version(snapshotSuffix='SNAPSHOT')
    subprocess.check_call(['tool/truffle/set_truffle_version.sh', dev_version],
                          cwd=jruby_dir)
    mx.build([])
    mx.maven_install([])
    subprocess.check_call(['./mvnw', '-X', 'clean'], cwd=jruby_dir)
    subprocess.check_call([
        './mvnw',
        '-X',
    ], cwd=jruby_dir)
    subprocess.check_call(['bin/jruby', 'tool/jt.rb', 'test', 'fast'],
                          cwd=jruby_dir)
Ejemplo n.º 2
0
def testdownstream(args):
    """test downstream users of the Truffle API"""
    jruby_dir = 'jruby'
    jruby_repo = 'https://github.com/jruby/jruby.git'
    jruby_branch = 'truffle-head'
    git = mx.GitConfig()
    if os.path.exists('jruby'):
        git.run(['git', 'reset', 'HEAD', '--hard'], nonZeroIsFatal=True, cwd=jruby_dir)
        git.pull('jruby')
    else:
        git.clone(jruby_repo, jruby_dir)
        git.run(['git', 'checkout', jruby_branch], nonZeroIsFatal=True, cwd=jruby_dir)
    dev_version = _suite.release_version(snapshotSuffix='SNAPSHOT')
    mx.build([])
    mx.maven_install([])
    subprocess.check_call(['./mvnw', '-q', '-Dtruffle.version=' + dev_version], cwd=jruby_dir)
    subprocess.check_call(['bin/jruby', 'tool/jt.rb', 'test', 'fast'], cwd=jruby_dir)
Ejemplo n.º 3
0
def testdownstream(args):
    """test downstream users of the Truffle API"""
    jruby_dir = "jruby"
    jruby_repo = "https://github.com/jruby/jruby.git"
    jruby_branch = "truffle-head"
    git = mx.GitConfig()
    if os.path.exists("jruby"):
        git.run(["git", "reset", "HEAD", "--hard"], nonZeroIsFatal=True, cwd=jruby_dir)
        git.pull("jruby")
    else:
        git.clone(jruby_repo, jruby_dir)
        git.run(["git", "checkout", jruby_branch], nonZeroIsFatal=True, cwd=jruby_dir)
    dev_version = _suite.release_version(snapshotSuffix="SNAPSHOT")
    subprocess.check_call(["tool/truffle/set_truffle_version.sh", dev_version], cwd=jruby_dir)
    mx.build([])
    mx.maven_install([])
    subprocess.check_call(["./mvnw", "clean"], cwd=jruby_dir)
    subprocess.check_call(["./mvnw"], cwd=jruby_dir)
    subprocess.check_call(["bin/jruby", "tool/jt.rb", "test", "fast"], cwd=jruby_dir)