elm is very slow on ci (circle / travis). I personally suffer from> 30 m of build time in a circle for a rather small elm project. https://github.com/elm-lang/elm-compiler/issues/1473 suggests "determining the number of processors is a problem" and recommends using libsysconfcpus to return 1 CPU instead of the actual detected amount. Is there any other way to mitigate this long compilation time?
libsysconfcpus
From https://elmlang.slack.com/archives/general/p1484149451013255
@rtfeldman:
There is a known speed problem with the circle and Travis, because they incorrectly report the number of processors, but there is a workaround: add the equivalent of their configuration to your environment:https://github.com/elm-community/elm-test/blob/master/.travis.yml#L6https://github.com/elm-community/elm-test/blob/master/.travis.yml#L22-L30https://github.com/elm-community/elm-test/blob/master/.travis.yml#L39-L41 (Rev)they basically change elm-make to a script that runs elm-make with sysconfcpus -n 2 so that elm-make know the actual number of available CPUsI talked with people about this, and tl; dr is that they are not interested in fixing it, but may gain a foothold in the future release of some of the materials that they use
There is a known speed problem with the circle and Travis, because they incorrectly report the number of processors, but there is a workaround: add the equivalent of their configuration to your environment:
they basically change elm-make to a script that runs elm-make with sysconfcpus -n 2 so that elm-make know the actual number of available CPUs
elm-make
sysconfcpus -n 2
I talked with people about this, and tl; dr is that they are not interested in fixing it, but may gain a foothold in the future release of some of the materials that they use
Consider the setup:
sudo: true
at .travis.yml . He cut the Haskell assembly from 18 minutes to 3.
.travis.yml
for users who are looking for a quick and dirty fix: using libsysconfcpus to limit the amount detected by sysconf really reduces the knitting time by an order of magnitude around ci.
Source: https://habr.com/ru/post/1262667/More articles:importing eslint into webpack: cannot resolve module path - reactjsCollect the map stream onto the map > - javaHow can I rotate the Container widget in 2D around a given anchor point? - dartGolang, the right way to restart a routine that has panicked - goIs Bluetooth OOB Compatibility Really Supported in Android? - androidHow to make Xcode 8 C preprocessor ignore // comments in #defines - cHow to quickly * convert many .txt files to .xls files - vbaUnexpected null value imported by t module - angularHow to use tf.while_loop () for variable length inputs in a tensor stream? - pythonUsing Powershell to process Excel files and check for the presence of a table name. - powershellAll Articles