summaryrefslogtreecommitdiff
path: root/core/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Add Sonatypype publishing;rockjam2017-12-202-1/+4
| | | | now you can publish your module with `mill run MyModule.publish --credentials $SONATYPE_CREDENTIALS --gpgPassphrase $GPG_PASSPHRASE`
* publishLocal - looks like it worksdos652017-12-201-1/+1
|
* upgrade to new version of uPickle/AmmoniteLi Haoyi2017-12-162-1/+2
|
* First pass at using a compiler plugin to remove the need for the `override` ↵Li Haoyi2017-12-151-1/+14
| | | | | | | | keyword when overriding a field within a `mill.Module` This only applies to `mill.Module`s, not overrides elsewhere which still require the keyword. `mill.Module`s tend to have lots and lots of overriding, so the keyword is basically noise. Also includes the necessary build changes to enable the locally-built Scalac plugin when compiling the test suite. Note that no changes are necessary for the executable assembly, because the `scalac-plugin.xml` will be included in the assembly and get picked up by the Ammonite scalac plugin classloader automatically
* Move `Evaluator`s to be long lived, and make tests passLi Haoyi2017-12-142-17/+24
|
* `Core.compile()` now works in the build REPLLi Haoyi2017-12-101-2/+2
|
* First pass at simplifying Ammonite integration and enabling the REPL. Can ↵Li Haoyi2017-12-101-1/+1
| | | | query for terms like `Core.compile`, but still can't run `Core.compile()`
* Add support for compiler plugins and enable acyclic plugin in buildTin Pavlinic2017-12-091-1/+3
|
* pass compile analysis of projectDeps to zinc, fixes #29rockjam2017-12-071-0/+3
|
* Standardize on a `mill.util.Logger` classLi Haoyi2017-12-044-11/+11
|
* Make more stuff use the implicit `T.ctx()`Li Haoyi2017-12-041-6/+7
|
* - Make `T.ctx()` available implicitlyLi Haoyi2017-12-043-3/+8
| | | | | - 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
* Fix error messages on resolving cross-built modules and re-enable relevant ↵Li Haoyi2017-11-261-2/+2
| | | | neg tests
* Refactor `build.sc` to pull out common `ScalaModule` code into a separate traitLi Haoyi2017-11-262-1/+24
| | | | 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-261-2/+0
| | | | defaultCommandName member
* - Make `Discovered` logic use the public getter of a `val` field, instead of ↵Li Haoyi2017-11-256-126/+162
| | | | | | | | 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-252-13/+13
|
* Fix cross-build discoveryLi Haoyi2017-11-251-3/+1
|
* Swap out all our `Either[String, Seq[String]]`s for `Mirror.Segment`sLi Haoyi2017-11-251-12/+12
|
* First pass at some cross-build resolving tests, not all passing yetLi Haoyi2017-11-251-2/+65
|
* Unit tests for `Main.resolve`Li Haoyi2017-11-251-0/+49
|
* Targets living in cross modules can now be properly discovered, run and cached.Li Haoyi2017-11-224-16/+62
| | | | | | | | 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-182-2/+84
| | | | | | 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-182-36/+37
| | | | `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-182-2/+30
| | | | 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-184-82/+4
| | | | unit tests
* Organize `core/test`s into subfoldersLi Haoyi2017-11-1812-113/+108
|
* Tweak `OSet` to avoid re-creating the `.items` Vector for every operation, ↵Li Haoyi2017-11-183-3/+3
| | | | 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-183-22/+27
| | | | 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-183-14/+22
|
* Implement `T.persistent{}` targets, which have their dest directory persist ↵Li Haoyi2017-11-181-5/+1
| | | | between runs so the task implementation can use it as a cache
* CleanupLi Haoyi2017-11-185-9/+3
|
* Extract out shared `Hierarchy.traverse` function for walking `Hierarchy` treeLi Haoyi2017-11-182-4/+4
|
* Tests appear to pass using the new `Hierarchy`-first `Discovered` data formatLi Haoyi2017-11-172-39/+55
|
* Flesh out a principled implementation of the cross-build monadLi Haoyi2017-11-161-37/+128
|
* interpreter-based `Cross` seems to workLi Haoyi2017-11-161-34/+37
|
* Vendor `com.lihaoyi:acyclic` codebase as a cross-building example, first ↵Li Haoyi2017-11-166-14/+61
| | | | non-working experiments in cross building working...
* Add namespace hierarchy discovery to the `Discovered` macro, in preparation ↵Li Haoyi2017-11-123-4/+18
| | | | for IntelliJ support
* Tests are passing under the new group evaluation modelLi Haoyi2017-11-123-48/+86
|
* Clean up `mill.Main`Li Haoyi2017-11-122-5/+0
|
* Rename out `Task.path` to `Task.source`, use it more aggressively to get ↵Li Haoyi2017-11-123-20/+24
| | | | `amm -w` watch-n-rebuild functionality working on `build.sc`
* Ensure `Evaluator` can handle the case where you have more than one terminal ↵Li Haoyi2017-11-121-18/+52
| | | | nodes on the boundary between two groups, *and* one of the terminal nodes depends on another
* .Li Haoyi2017-11-111-3/+1
|
* Properly merge groups in `groupAroundNamedTargets` to handle cases where a ↵Li Haoyi2017-11-111-0/+20
| | | | group has multiple terminals