summaryrefslogtreecommitdiff
path: root/scalalib/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Swap over to simplified Mill module/source layout from SBT'sLi Haoyi2018-01-2017-637/+0
| | | | Removes a lot of useless folders and gives us a chance to exercise this simplified layout. Support for the SBT layout is still verified by our integration tests
* add a basic test for gen-idea (#114)Stephen Nancekivell2018-01-1913-0/+178
| | | | | | | | | | * add a basic test for gen-idea * update GenIdeaTest with resources as source. * change .gitignore to allow .iml under src/test/resources. Ignore .idea_modules. * normalise library paths in GenIdeaTests
* Run Main.main in current process (#115)Minghao Liu2018-01-191-0/+24
| | | | | | | | | | | | | | | | * no message * fix compile * fix compile again * finishing in process running * remove comment * fix bug * fix bug
* - Swap over to new `ivy"foo:bar:baz"` syntax for defining ivy dependenciesLi Haoyi2018-01-152-5/+5
| | | | | | - `projectDeps` is now `moduleDeps` for compatibility with our `Module` terminology - `scalalib.Module` is now `ScalaModule` for compatibility with `import scalalib._`
* Some tweaks to get tests passing...Li Haoyi2018-01-141-52/+51
|
* Everything seems to compile with new, minimal `Discover` implementation...Li Haoyi2018-01-141-8/+8
|
* rename OSet -> AggLi Haoyi2018-01-131-6/+6
|
* Migrate most classpath-related code onto `Loose.OSet` abstraction, to ↵Li Haoyi2018-01-131-5/+6
| | | | enforce deduplication
* - Make `sources` and `resources` able to take multiple roots, so we can ↵Li Haoyi2018-01-121-1/+1
| | | | implement `CrossSbtModule` that works with `scala-2.10/` `scala-2.11/` etc. folders
* prepare ci builds - fix tests (#107)Vadim Chelyshov2018-01-081-12/+54
|
* Simplify `Evaluator.Mapping` and consolidate logic within the `Segments` ↵Li Haoyi2018-01-081-1/+1
| | | | data-type
* Consolidate `Cross` and `CrossModule`, eliminate now-unused ↵Li Haoyi2018-01-081-3/+3
| | | | `map`/`flatMap`/`filter` APIs
* Swap over to a new, concise `CrossModule[T](..cases)` macro syntax that ↵Li Haoyi2018-01-071-3/+2
| | | | automatically propagates the `ctx` for you
* Generate the `Segments` list at definition time rather than discovery time, ↵Li Haoyi2018-01-071-5/+5
| | | | | | | | by propagating implicits throughout the tree of nested `mill.Module`s This currently adds some annoying boilerplate to the definition of cross/abstract modules, which can probably be removed using Macros. The `Segments` mapping generated by discovery is still present and used in a few places, though it will be removed
* Rename `resource/` folders `resources/` to properly match SBT convention, ↵Li Haoyi2018-01-073-1/+1
| | | | making changes within them get picked up by the file-watching `~compile`/`~test` commands
* First pass at implicitly propagating a `def basePath: Path` up the `Module` ↵Li Haoyi2018-01-071-8/+8
| | | | | | | | hierarchy, which each module receives and extends. One constraint is that now must define your abstract modules as `trait`s rather than `class`es, or otherwise add an implicit `ctx: ModuleCtx` parameter to your class definition. So far this lets us remove some explicit `basePath` definitions in `build.sc`. Proper handling of `basePath` in `CrossModule`s is future work
* First pass at providing new pretty-prints for build ↵Li Haoyi2018-01-031-1/+1
| | | | `Module`s/`Target`s/`Cross`s in the Mill REPL, making use of `sourcecode.*` values captured and definition-site and contextual information made available in the build `Mirror`
* Fix `idea` project generation, and make `Result.Exception` display the ↵Li Haoyi2018-01-011-5/+5
| | | | offending stack trace so they're easier to debug
* Make `HelloWorldTests` take an explicit output path so they are less ↵Li Haoyi2018-01-012-9/+17
| | | | | | sensitive to working directories Make `run` and `runMain` take option CLI args
* Split Acyclic/Jawn/BetterFiles tests into their own `integration/` test suite.Li Haoyi2018-01-01160-11535/+5
| | | | | | Those tests now download a snapshot of the relevant git repo rather than vendoring the files, and use a bare `build.sc` instead of having the build object be included in the test classpath. Tests pass using `sbt integration/test`, but `mill integration.test` still doesn't work
* - Convert `T.source` into a generic `Target` that flushes the cache every timeLi Haoyi2017-12-314-24/+31
| | | | | | - Prepare `T.ctx().base: Path` that `Task`s (including `T.source`) can use to find a "default" path for source files. - Simplify `Cacher`
* `Core` -> `core`, for consistency with SBT naming schemesLi Haoyi2017-12-30162-0/+11909
`ScalaPlugin` -> `scalalib`, to avoid confusion with Scala compiler plugins `ScalaModule` -> `module`, to be used via `scalalib.Module`, avoid unnecessary duplication in th name prefix `plugin` -> `moduledefs`, to more accurately describe what it does (since it includes `Cacher` as well)