forked from NixOS/distribution-nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
haskell-ci: patch workflow to skip PackageMap.hs in doctests
We use haskell-ci's weird feature to apply a patch to the workflow file in order to not test PackageMap.hs using doctest since it will always fail -- there seems to be no way to install nix in haskell-ci's ubuntu docker containers. We can hopefully drop this if the following issue gets some kind of resolution: haskell-CI/haskell-ci#519
- Loading branch information
1 parent
8331e78
commit cd91241
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/.github/workflows/haskell-ci.yml b/.github/workflows/haskell-ci.yml | ||
index 5ed81c0..9bb7e56 100644 | ||
--- a/.github/workflows/haskell-ci.yml | ||
+++ b/.github/workflows/haskell-ci.yml | ||
@@ -179,7 +179,7 @@ jobs: | ||
- name: doctest | ||
run: | | ||
cd ${PKGDIR_distribution_nixpkgs} || false | ||
- doctest -i ../../dist-newstyle/build/*/*/distribution-nixpkgs-*/build/autogen src | ||
+ doctest -i ../../dist-newstyle/build/*/*/distribution-nixpkgs-*/build/autogen src/Distribution/Nixpkgs/Hashes.hs src/Distribution/Nixpkgs/License.hs src/Distribution/Nixpkgs/Meta.hs src/Language/Nix/PrettyPrinting.hs | ||
- name: hlint | ||
run: | | ||
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then (cd ${PKGDIR_distribution_nixpkgs} && hlint src) ; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters