Commit Graph

21 Commits

Author SHA1 Message Date
Sridhar Ratnakumar
fe9c595916 test: Make haskell-parser tests a flake check 2024-02-23 16:01:17 -05:00
Sridhar Ratnakumar
c5b55e1c2e ci: Run doc/test.sh separately
We don't want to run this on every platform. Just one is sufficient.
2024-02-23 15:39:11 -05:00
Sridhar Ratnakumar
f06109222f
ci: Jenkins ➡️ self-hosted runners (#218) 2024-01-27 02:35:16 -05:00
Robert Hensing
29d24eba17 runtest.sh: Re-enable doc build 2023-06-01 18:29:55 +02:00
Sridhar Ratnakumar
996f5c2cdc
Modular overrides (#162)
**Completely new way to override Haskell packages**: removed `overrides` and `source-overrides`. Use `packages` to specify your source overrides; use `settings` to override individual packages in modular fashion (like NixOS modules). Additional changes include:
  - Add `package.<name>.cabal.executables` referring to the executables in a package. This is auto-detected by parsing the Cabal file.
  - Add `packages.<name>.local.*` to determine of a package is a local package or not.
  - Add `projectFlakeName` option (useful in debug logging prefix)
  - `flake.haskellFlakeProjectModules`: Dropped all defaults, except the `output` module, which now exports `packages` and `settings`. Added a `defaults.projectModules.output` option that allows the user to override this module, or directly access the generated module.
  - Add `project.config.defaults.settings.default` defining sensible defaults for local packages.
  - Add `project.config.defaults.enable` to turn off all default settings en masse.

Also, disable docs test due to https://github.com/hercules-ci/flake.parts-website/issues/332
2023-05-30 13:55:26 -04:00
Sridhar Ratnakumar
81ca2f4051
Remove automatic hpack conversion (#148) 2023-04-26 15:01:02 -04:00
Shivaraj B H
4e8e79b9b4
Expose cabal executables as flake apps (#137)
Also,

Add a corresponding `outputs.apps` option, while the `outputs.localPackages` option is renamed to `outputs.packages` (it now contains package metadata, including packages and its executables).
2023-04-19 15:00:22 -04:00
Sridhar Ratnakumar
4a6d06a767 Add test for project module defaults 2023-03-14 14:10:15 -04:00
Sridhar Ratnakumar
70359f1652 Add test for hpack support 2023-03-14 13:51:59 -04:00
Sridhar Ratnakumar
b47c95681b
test: Install Nix as a CI step (#125) 2023-03-14 11:48:08 -04:00
Sridhar Ratnakumar
e16a1f8e2a Move template test from ci.yaml to test.sh 2023-03-13 21:40:45 -04:00
Sridhar Ratnakumar
632d3dc7a4
Refactor tests: decouple them to their own subdir (#122) 2023-03-13 21:23:13 -04:00
Sridhar Ratnakumar
bfb7d3c3ec runtest.sh: Prevent using macOS shell (zsh or bash)
Also change CI to run bash directly from nixpkgs
2023-03-12 22:20:17 -04:00
Robert Hensing
3997077929 Reproduce source filtering problem 2023-03-13 01:38:44 +01:00
Robert Hensing
9c54b5fcd7 Move test -> test/simple 2023-03-13 01:37:55 +01:00
Sridhar Ratnakumar
56d8d9787a
Autodetect "packages" based on cabal.project (and package.yaml) (#110) 2023-03-10 09:41:21 -05:00
ACreed
7019678d8c
Have packages option auto-detect single-package projects (#75)
Co-authored-by: Ag <aravindmallapureddy@juspay.in>
Co-authored-by: Sridhar Ratnakumar <srid@srid.ca>
2023-02-09 20:49:45 -05:00
Robert Hensing
1e355a1e36
Expose finalPackages (#68)
* Expose finalPackages

* Check docs in tests

* Add docs.sh script

* Turn haskell-project.nix into a module

* flake-module.nix: Refactor, move to create single perSystem module

Co-authored-by: Sridhar Ratnakumar <srid@srid.ca>
2023-02-08 17:15:49 -05:00
Sridhar Ratnakumar
bdde8bb68b test: log test groups 2023-02-07 17:30:05 -05:00
Sridhar Ratnakumar
014aa621ec
Add devShell submodule; allow disabling dev environment (#61) 2023-02-05 14:06:19 -05:00
Sridhar Ratnakumar
47437fbb88
Add automated test (#60)
- Add `./test` that aims to use all features of haskell-flake
- Add `./test/test.sh` that verifies that the devshell of `./test` is as one would expect
- Add `./runtest.sh` at project root to run the full test
- Run the same ^ in Github Actions

I'm *not* entirely happy with this approach; in particular, `test.sh` seems pretty hacky. But it works. Not sure if it will scale.
2023-02-01 14:52:39 -05:00