summaryrefslogtreecommitdiff
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
...
* pass compile analysis of projectDeps to zinc, fixes #29rockjam2017-12-073-3/+11
|
* Explicitly pass built compiler-bridge jar locations from the build system ↵Li Haoyi2017-12-061-2/+22
| | | | | | | | into Mill as JVM properties. This makes the dependency between the compiler-bridge jar and the Mill executable explicit, allowing us to swap out the locations compiler-bridge jars (which end up in different places, depending on whether you're building with SBT or Mill) or eventually making them load from Maven Central in a "release" Mill executable Since Mill (and uTest) both do not support SBT-style test arguments, we need to use `forkTest` instead of `test` to run the Mill tests passing the compiler-jar locations as JVM props. This necessitated some fixes to make `forkTest` behave properly
* Avoid `inheritIO` in `Jvm.subprocess`, and instead feed it into the proper ↵Li Haoyi2017-12-043-4/+50
| | | | `log.outputStream`
* Standardize on a `mill.util.Logger` classLi Haoyi2017-12-049-38/+54
|
* Make more stuff use the implicit `T.ctx()`Li Haoyi2017-12-042-10/+12
|
* - Make `T.ctx()` available implicitlyLi Haoyi2017-12-049-53/+87
| | | | | - Convert `ScalaModule.{compile,assembly}` to use the new implicit `T.ctx()` - Add a `log: PrintStream` to the `T.ctx()`, in preparation for per-task logging
* Flesh out `bridges` pre-compilation in Mill build, getting the ↵Li Haoyi2017-12-043-14/+17
| | | | | | | | | | cross-minor-version `AcyclicTests` running using the `mill` test runner Fixed `Discovered` to only pick up public `Target`s, which makes it skip things like the `super$compile` of an overriden `compile` target. Split up `sources` and `allSources` TBD how to properly switch the `compilerBridgeJar` between the different output paths of SBT's compile-dir and Mill's compile-dir, and eventually to a maven-central artifact too
* Fix error messages on resolving cross-built modules and re-enable relevant ↵Li Haoyi2017-11-262-3/+11
| | | | neg tests
* Merge branch 'master' of github.com:lihaoyi/millLi Haoyi2017-11-261-1/+3
|\
| * Check owner of method instead of linear search (#28)Iulian Dragos2017-11-261-1/+3
| | | | | | Inherited methods from Object can be checked for owner instead of looking at the name of the method. This should be cleaner and faster, though probably below the margin of error at this point.
* | Get acyclic's tests running after compilation failures, fixing a ↵Li Haoyi2017-11-261-0/+5
| | | | | | | | metadata.mill.json invalidation bug
* | Acyclic test suite works now that we can fork and set a proper working ↵Li Haoyi2017-11-261-3/+3
|/ | | | directory, but only when run alone (???)
* Bust caches when the build itself has changed. (#24)Iulian Dragos2017-11-261-2/+10
| | | | | Use the Ammonite classloader to check if the classpath has changed Fix #7
* fix console command in scala plugin; use subprocess for run (#21)Nikolay Tatarinov2017-11-261-2/+3
|
* Refactor `build.sc` to pull out common `ScalaModule` code into a separate traitLi Haoyi2017-11-264-5/+31
| | | | Also workaround a few scala-reflect bugs in `Discovered` and `Router` that were making this not-work
* bring back ScalaModule#run, bring back TaskModule now with a new ↵Li Haoyi2017-11-264-10/+13
| | | | defaultCommandName member
* improve task failure pretty-printingLi Haoyi2017-11-251-21/+16
|
* Remove `TaskModule`, make default-task selection to be by-name (tentatively ↵Li Haoyi2017-11-252-22/+17
| | | | | | | | | | hardcoded to `run`) so we can pass CLI arguments to the default run tasks Forward CLI arguments to the `TestModule#run` command; you can now select what tests you want to run using uTest, via: ``` mill run Core.test mill.define.ApplicativeTests ```
* - Make `Discovered` logic use the public getter of a `val` field, instead of ↵Li Haoyi2017-11-258-133/+169
| | | | | | | | the private backing-field (which seems to end with a whitespace, and doesn't seem to exist for fields defined in anonynomous classes e.g. `new { val x = 1 }` - Re-enable `mill.main.MainTests.nested` - Share test graphs between `CrossModuleTests`, `DiscoveredTests` and `MainTests`
* Streamline cross-build Scala syntax to avoid the unnecessary `List(...)` wrapperLi Haoyi2017-11-254-18/+26
|
* Fix cross-build discoveryLi Haoyi2017-11-252-5/+3
|
* Swap over to using `java.nio` APIs to make self-executable jars, instead of ↵Li Haoyi2017-11-251-5/+9
| | | | shelling out to `chmod`
* Merge branch 'master' of github.com:lihaoyi/millLi Haoyi2017-11-251-3/+15
|\
| * Allow the definition of a prependShellScript in a ScalaModule (#13)André Duarte2017-11-251-3/+15
| |
* | Swap out all our `Either[String, Seq[String]]`s for `Mirror.Segment`sLi Haoyi2017-11-254-32/+42
| |
* | First pass at some cross-build resolving tests, not all passing yetLi Haoyi2017-11-252-3/+68
| |
* | Unit tests for `Main.resolve`Li Haoyi2017-11-252-36/+95
|/
* Merge PR #15: first attempt to refactor Main.apply()Li Haoyi2017-11-252-90/+128
|\
| * commentsandrea2017-11-252-55/+53
| |
| * first attempt to refactor Main.apply()andrea2017-11-242-77/+119
| |
* | First pass at simplifying test suite definition & runningLi Haoyi2017-11-252-1/+16
| | | | | | | | | | | | Added a `TaskModule` subclass of `Module`, which delegates to a `self` task that you can run directly from bash Fixed `GenIdea` to fix reversing of module path in generating module name
* | First pass at simplifying test suite definition & runningLi Haoyi2017-11-251-1/+4
|/ | | | Fixed `GenIdea` to fix reversing of module path in generating module name
* Fixes #1. Don't log "Running" of skipped target (#11)Nikolay Tatarinov2017-11-231-7/+26
| | | | | | * fixes #1: don't log failed targets as running * remove pprint logging
* Targets living in cross modules can now be properly discovered, run and cached.Li Haoyi2017-11-227-38/+109
| | | | | | | | Try out the following commands on our Mill `build.sc` file to exercise this functionality - `scalaplugin/target/mill run Core.cross[jarA].jar` - `scalaplugin/target/mill run Core.cross[jarB].jar` - `scalaplugin/target/mill run Core.cross[jarC].jar`
* First hack pass at cross-build discovery and command-running now works.Li Haoyi2017-11-186-83/+202
| | | | | | Can be tested out on our `build.sc` via `scalaplugin/target/mill run Core.cross[a].printIt` Needs tons of cleanup...
* dry-up-workspaceLi Haoyi2017-11-181-3/+3
|
* Refactor `eval/FailureTests` to DRY it upLi Haoyi2017-11-181-36/+48
|
* Shift mixed task/target group-count tests into `GraphTests` with the other ↵Li Haoyi2017-11-183-76/+104
| | | | `groupAroundNamedArgs` tests, and move the graph definitions themselves into `TestGraphs` so they can be shared
* Add some basic tests for failure/exception handling during evaluation...Li Haoyi2017-11-182-2/+94
|
* Move graph algorithms on tasks into `define/Graph.scala`, and move ↵Li Haoyi2017-11-184-94/+103
| | | | `GraphTests.scala` into `define/` as well
* Move some test cases that are testing `mill/discover/` code, into that packageLi Haoyi2017-11-183-79/+107
|
* Add basic unit tests for `T.command` discoveryLi Haoyi2017-11-181-1/+43
|
* Force compile errors for missing implicits in `Discovered` materialization ↵Li Haoyi2017-11-184-9/+53
| | | | to point at their source methods, for easier fixing
* Inject logging callback into Evaluator, so we can silence the logging in our ↵Li Haoyi2017-11-186-100/+36
| | | | unit tests
* Organize `core/test`s into subfoldersLi Haoyi2017-11-1812-113/+108
|
* Tweak implicits to make `build.sc` pass againLi Haoyi2017-11-184-16/+47
|
* Tweak `OSet` to avoid re-creating the `.items` Vector for every operation, ↵Li Haoyi2017-11-186-14/+17
| | | | making `.items` a lightweight Iterator and forcing users to use `.indexed` if they explicitly need an indexed sequence
* First pass at managing failures in the evaluation graph now works. Tweaked ↵Li Haoyi2017-11-188-61/+101
| | | | the `JavaCompileJarTests` to make use of it, but still need to write a proper unit test suite
* Tighten up `LabelledTarget` to contain a `Target[T]` instead of a `Task[T]`Li Haoyi2017-11-187-33/+46
|
* Refactor `Evaluator` implementation to reduce the number of "unsafe" map lookupsLi Haoyi2017-11-181-50/+44
|