小编Toc*_*car的帖子

如何使用RequireJS,grunt和uglify在我的应用程序代码中组合CKEditor?

这是我的'common.js'文件:

requirejs.config({
paths: {
    domReady: '../vendor/requirejs-domready/domReady',
    jquery: 'lib/jquery',
    datatables: '../vendor/datatables/media/js/jquery.dataTables.min',
    tabletools: '../vendor/datatables/extensions/TableTools/js/dataTables.tableTools',
    fixedheader: '../vendor/datatables/extensions/FixedHeader/js/dataTables.fixedHeader.min',
    'datatables-bootstrap': '../vendor/datatables-bootstrap3-plugin/media/js/datatables-bootstrap3.min',
    jeditable: '../vendor/jeditable/jeditable',
    routing: '../../bundles/fosjsrouting/js/router',
    routes: '../vendor/fosjsrouting/fos_js_routes',
    'ckeditor-core':'../vendor/ckeditor/ckeditor',
    'ckeditor-jquery':'../vendor/ckeditor/adapters/jquery',
    selectize: '../vendor/selectize/dist/js/selectize.min',
    sifter: '../vendor/sifter/sifter.min',
    microplugin: '../vendor/microplugin/src/microplugin',
    datepicker: '../vendor/zebra-datepicker/public/javascript/zebra_datepicker',
    bootstrap: '../vendor/bootstrap/dist/js/bootstrap.min'
},
shim: {
    bootstrap: {
        deps: ['jquery']
    },
    jeditable: {
        deps: ['jquery']
    },
    routing: {
        exports: 'Routing'
    },
    routes: {
        deps: ['routing']
    },
    'ckeditor-jquery':{
        deps:['jquery','ckeditor-core']
    },
    selectize: {
        deps: ['jquery', 'sifter', 'microplugin']
    },
    'tabletools': {
        deps: ['datatables']
    },
    'fixedheader': {
        deps: ['datatables']
    }
}
});
Run Code Online (Sandbox Code Playgroud)

..这里是我的Gruntfile.js的相关部分: …

javascript ckeditor requirejs gruntjs

7
推荐指数
1
解决办法
648
查看次数

Jenkins(使用Ant)不执行PHPUnit测试

我正在尝试在我的PHP应用程序(Symfony2)中使用Jenkins和Ant,但无法执行我的测试.我可以在Jenkins的"控制台输出"屏幕中看到正在读取正确的配置文件,但它显示没有执行任何测试.

当我从项目的根目录中运行cli中的Ant build.xml文件时,构建成功并且我的测试执行并通过.

如果我进入/Users/Shared/Jenkins/ {....}/workspace目录并运行'sudo ant',它表示没有执行任何测试!这是令人困惑的,因为完全相同的build.xml文件在从我的项目根目录运行时执行测试.

我的buil.xml文件的相关部分是:

<target name="phpunit" description="Run unit tests with PHPUnit">
    <exec executable="phpunit" failonerror="true">
        <arg value="-c" />
        <arg path="${workspace}/app/phpunit.xml.dist" />
    </exec>
</target>
Run Code Online (Sandbox Code Playgroud)

app/phpunit.xml看起来像:

<?xml version="1.0" encoding="UTF-8"?>

<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
        backupGlobals               = "false"
        backupStaticAttributes      = "false"
    colors                      = "true"
    convertErrorsToExceptions   = "true"
    convertNoticesToExceptions  = "true"
    convertWarningsToExceptions = "true"
    processIsolation            = "false"
    stopOnFailure               = "false"
    syntaxCheck                 = "false"
    bootstrap                   = "bootstrap.php.cache" >

<testsuites>
    <testsuite name="Project Test Suite">
        <directory>../src/*/*Bundle/Tests</directory>
    </testsuite>
</testsuites>

<filter>
    <whitelist>
        <directory>../src</directory>
        <exclude>
            <directory>../src/*/*Bundle/Resources</directory>
            <directory>../src/*/*Bundle/Tests</directory>
            <directory>../src/*/Bundle/*Bundle/Resources</directory>
            <directory>../src/*/Bundle/*Bundle/Tests</directory> …
Run Code Online (Sandbox Code Playgroud)

php ant phpunit symfony jenkins

2
推荐指数
1
解决办法
2833
查看次数

标签 统计

ant ×1

ckeditor ×1

gruntjs ×1

javascript ×1

jenkins ×1

php ×1

phpunit ×1

requirejs ×1

symfony ×1