Commit Graph

26 Commits

Author SHA1 Message Date
DavHau
40eb491b8a fix: unbound variable in .#test-examples 2022-12-28 15:27:06 +08:00
DavHau
0073d6db66 chore: allow running tests-examples against different version of nix 2022-12-28 14:19:57 +08:00
Yusuf Bera Ertan
f44016a2d4
refactor: move dream2nix interface to modules 2022-11-20 09:03:09 +03:00
Yusuf Bera Ertan
b22b97fc37
fix: tests should use framework 2022-11-16 04:17:30 +03:00
DavHau
bc454bfe9d fix example test for indexer 2022-08-31 12:10:33 +02:00
DavHau
aeaf598afd chore: CI performance improvements
- run more jobs in parallel for `example` and `integration` tests
- use cachitx for unit tests
2022-08-24 13:14:07 +02:00
DavHau
027083be7d chore: print execution times for integration tests 2022-08-20 18:32:48 +02:00
DavHau
e654ffaa10 feat: module system improvements
- add documentation to the subsystem-loading interface
- expose evaled modules publicly via `framework`
- add option config.modules to allow users to include their own modules
- update examples for extending dream2nix
2022-08-15 15:34:24 +02:00
DavHau
9331fb1376 fix: examples: don't ignore feiled resolveImpure 2022-08-12 18:45:11 +02:00
Yusuf Bera Ertan
0f4d0a9847
tests: dont run read-only check no certain examples 2022-07-24 19:53:38 +03:00
Yusuf Bera Ertan
0cf34d9162
tests: run nix eval test after resolving impurities 2022-07-24 19:29:18 +03:00
Yusuf Bera Ertan
07d0e71a13
tests: run nix eval with read-only and no-ifd flags on examples to ensure they work with those flags 2022-07-24 19:26:46 +03:00
DavHau
b45c224383 simpleTranslate2: improve unit tests. Be more lazy 2022-06-16 18:10:04 +02:00
Yusuf Bera Ertan
9b6638a1a7
feat: implement makeOutputs that outputs systemless structure (#161)
* feat: return underlying d2n instance if pkgs was passed to init, document init pkgs

* feat: implement makeOutputs

* tests: dont fail if resolveImpure fails

* feat: make init return a dream2nix instance, rework makeFlakeOutputs code

* feat: default to source if config.projectRoot is not specified, update examples and readme

* fix: update the simple template

* docs: clarify init in readme

* docs: change readme numbering to back to 1

* refactor: dont default projectRoot to source

* docs: make extensive example use makeFlakeOutputs, link per-pkgs d2n example in readme

* fix: call loadConfig correctly
2022-06-01 22:53:46 +02:00
DavHau
523b19fa0e fix escaping problem in tests-examples 2022-05-18 20:45:26 +02:00
DavHau
b5d473e2e8 tests-examples: allow passing arguments 2022-05-18 20:42:05 +02:00
DavHau
ed9f030be9 example tests: run all tests despite error 2022-05-17 20:12:26 +02:00
DavHau
4f1b483239 improve testing examples: fail on error 2022-05-17 13:56:08 +02:00
DavHau
2d630b00f2 fix testing examples 2022-05-17 12:17:23 +02:00
DavHau
5f8841c794 optimize tests for examples 2022-04-23 15:09:55 +02:00
DavHau
feb7eabd0c fixup cargo-lock translator 2022-04-17 14:42:48 +02:00
DavHau
1ac93e4d93 allow executing single test via nix run .#tests-examples {package} 2022-04-15 01:15:37 +02:00
DavHau
28b890821f fix missing git in tests-examples 2022-03-28 23:42:49 +07:00
DavHau
502a2fefc5 fix aggregated fetching 2022-03-28 23:20:44 +07:00
DavHau
5b97484a4f improve testing examples 2022-03-28 13:52:35 +07:00
DavHau
f7c034d4ee add ./examples with flake examples 2022-03-27 22:16:45 +07:00