Note that there are some explanatory texts on larger screens.

plurals
  1. POPlay 2.0 - Compilation of twitter bootstrap in test
    primarykey
    data
    text
    <p>I have a project where I want to compile twitter bootstrap as well as to prevent tests to be executed in parallel</p> <pre><code>def twitterBootstrapEntryPoints(base:File):PathFinder = { (base / "app" / "assets" / "stylesheets" / "bootstrap" * "bootstrap.less") +++ (base / "app" / "assets" / "stylesheets" / "bootstrap" * "responsive.less") +++ (base / "app" / "assets" / "stylesheets" * "*.less") } val common = PlayProject(appName, appVersion,appDependencies, mainLang = SCALA).settings( organization := appOrganization, lessEntryPoints &lt;&lt;= baseDirectory(twitterBootstrapEntryPoints), resolvers ++= commonResolvers).settings( inConfig(Test)(parallelExecution := false) : _* ) </code></pre> <hr> <p><strong>Edit:</strong></p> <p>To build twitter bootstrap, one should only compile bootstrap.less and responsive.less which import all the other files. in Compile everything works fine, when running in Test this does not work anymore, the compiler tries to compile all the .less files</p> <p>This is what I see on the play console</p> <pre><code>[GottwareWeb] $ clean [success] Total time: 0 s, completed 26 sept. 2012 17:44:07 [GottwareWeb] $ compile [info] Updating {file:/G:/GottwareWeb/}GottwareWeb... [info] Resolving org.hibernate.javax.persistence#hibernate-jpa-2.0-api;1.0.1.Fin [info] Done updating. [info] Compiling 34 Scala sources and 1 Java source to G:\GottwareWeb\target\sca la-2.9.1\classes... [success] Total time: 9 s, completed 26 sept. 2012 17:44:17 [GottwareWeb] $ test [error] {file:/G:/GottwareWeb/}GottwareWeb/*:play-copy-assets: in G:\GottwareWeb \app\assets\stylesheets\accordion.less - PlayException: Compilation error [varia ble @baseLineHeight is undefined] [error] {file:/G:/GottwareWeb/}GottwareWeb/compile:resources: in G:\GottwareWeb\ app\assets\stylesheets\accordion.less - PlayException: Compilation error [variab le @baseLineHeight is undefined] [error] Total time: 0 s, completed 26 sept. 2012 17:44:32 [GottwareWeb] $ </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload