Commit graph

1292 commits

Author SHA1 Message Date
John Wiegley 6f0c90f5d6
Change error message to say "requires at least nix 2.0" 2018-05-14 21:22:08 -07:00
John Wiegley dd3b5e4ac6
Disable the pretty parse tests entirely for now 2018-05-14 21:22:07 -07:00
John Wiegley 87bb41054b
Jailbreak concurrent-output when building for GHC 8.0 2018-05-14 21:22:07 -07:00
John Wiegley f4772727b5
Revert "Revert "Update the version of nixpkgs we are pinned to""
This reverts commit 7e1b288b9ff05f496fec1761f9962f249a2542c0.
2018-05-14 21:22:06 -07:00
John Wiegley c319d2730e
Revert "Update the version of nixpkgs we are pinned to"
This reverts commit e4a5806c766a4d1c832d245ad378b989c1aa4404.
2018-05-14 21:22:06 -07:00
John Wiegley 7a0fffc289
Allow the ghcjs build to fail for now 2018-05-14 21:22:05 -07:00
John Wiegley 0b89cc7b3a
Include the appropriate version of cabal-install, so we can use --pure 2018-05-14 21:22:05 -07:00
John Wiegley 471712f11f
Switch PrettyPrintTests from QuickCheck to Hedgehog
The reason being that we get better shrinking by default, and no orphan
instances.
2018-05-14 21:22:04 -07:00
John Wiegley 738ef09bf9
Make NUnaryOp and NBinaryOp both Enum and Bounded 2018-05-14 21:22:04 -07:00
John Wiegley a660fbf1f8
Drop the install phase, since it installs too much 2018-05-14 21:22:03 -07:00
John Wiegley 5a97378c85
Update the version of nixpkgs we are pinned to 2018-05-14 21:22:03 -07:00
John Wiegley ba7939507a
Try using --substituters for the ghcjs build 2018-05-14 21:22:02 -07:00
John Wiegley 7d1f7311d3
Merge pull request #317 from hSloan/master
builtins.toFile
2018-05-14 21:21:47 -07:00
John Wiegley 2ad2dff220
Merge pull request #315 from alexfmpe/nix-version-check
Abort on nix prior to 2.0
2018-05-14 21:16:17 -07:00
John Wiegley 60231bd38a
Merge branch 'master' into master 2018-05-14 21:15:07 -07:00
hsloan 3ca62fbf6e Merge branch 'master' of github.com:jwiegley/hnix 2018-05-14 22:57:20 -04:00
hsloan f7ff858ef9 add builtins.toFile 2018-05-14 22:54:34 -04:00
John Wiegley 13e66bfc8e Don't use sudo: false in .travis.yml 2018-05-14 22:45:43 -04:00
John Wiegley 7e8b0552a0 Fix to the pretty printing of @ names 2018-05-14 22:45:43 -04:00
John Wiegley 4193c88d20 Pretty print expressions when using -v5 and just --parse 2018-05-14 22:45:43 -04:00
John Wiegley ecf7678fdb Only invoke pretty/parser tests if PRETTY_TESTS=<N> for some N>0 2018-05-14 22:45:43 -04:00
John Wiegley e465368996 Disable caching for Travis builds, it exceeds the one hour time limit 2018-05-14 22:45:43 -04:00
John Wiegley a7de32ceb9 Increase the build timeout in .travis.yml, maybe it will let caching work? 2018-05-14 22:45:43 -04:00
John Wiegley 2d1c92a4a8 Expand the build matrix 2018-05-14 22:45:43 -04:00
John Wiegley 995786d7d3 Build the pending branch, to allow for Travis testing outside of master 2018-05-14 22:45:43 -04:00
John Wiegley 6486561b65 Use nix-shell in .travis.yml, not nix-env 2018-05-14 22:45:43 -04:00
John Wiegley 80616f5769 More Travis changes 2018-05-14 22:45:43 -04:00
John Wiegley ade13ee3a2 Update .travis.yml 2018-05-14 22:45:43 -04:00
John Wiegley 8a58782b7f Update .travis.yml 2018-05-14 22:45:43 -04:00
John Wiegley 0f3ef3a30d Update .travis.yml 2018-05-14 22:45:43 -04:00
John Wiegley b5e3f0e6df Add some additional testing files 2018-05-14 22:45:43 -04:00
John Wiegley 7afa2eaf23 Build with profiling enabled, as an extra check
Since this is a superset of what is needed to build without profiling.
2018-05-14 22:45:43 -04:00
John Wiegley 6d35758ff8 Try using caching on Travis 2018-05-14 22:45:43 -04:00
John Wiegley e13d9cbd93 Resolve a build warning 2018-05-14 22:45:43 -04:00
John Wiegley d7ea4b1dff Disable PrettyParseTests for now 2018-05-14 22:45:43 -04:00
John Wiegley e13cbebd69 Update hnix.cabal 2018-05-14 22:45:43 -04:00
John Wiegley fd9b77c29b Don't include Control.Applicative where not necessary 2018-05-14 22:45:43 -04:00
John Wiegley 6aa64760d1 Make use of lens-family to provide some utility lenses/traversals 2018-05-14 22:45:43 -04:00
Blair Archibald b89cba0525 Fix #280. unsafeGetAttrPos should return null.
According to the expected test output, unsafeGetAttrPos should fail silently and
return null if it can't find a position for the field (e.g when looking up
builtins).
2018-05-14 22:45:43 -04:00
Matthew Pickering ce46f58b2c Escape paths when used in a selector
./a."abc" gets parsed as App (./a.) "abc"
when pretty printing, it is necessary to escape the path to
${./a}."abc" so that it is then parsed correctly.
2018-05-14 22:45:43 -04:00
Matthew Pickering ed089f57b8 Fix pretty printing of EscapedNewline 2018-05-14 22:45:43 -04:00
Matthew Pickering 58f17e837a Add QuickCheck test for pretty printer and parser
I have not spent any time optimising the generated programs but they do
not look totally unreasonable from a cursory inspection.

Fixes #158
2018-05-14 22:45:43 -04:00
John Wiegley 45da41666b Make use of attrsetGet in another place 2018-05-14 22:45:43 -04:00
John Wiegley 6b34ea3ee5 Add a Calling info frame 2018-05-14 22:45:43 -04:00
John Wiegley 7c0ba49ab1 Some very minor fixes to warnings 2018-05-14 22:45:43 -04:00
John Wiegley f66a2cce16 Further README fix 2018-05-14 22:45:43 -04:00
John Wiegley f0da9364c7
Merge pull request #316 from Profpatsch/test-default-env-variables
Add HPACK_TESTS and an ALL_TESTS env variable
2018-05-14 15:25:08 -07:00
Profpatsch 9724c649ce tests: add a shortcut env variable to run all tests
Instead of having to specify all env variables manually, this defaults to
running all tests.
2018-05-15 00:03:39 +02:00
Profpatsch 9cfe060a9d tests: add HPACK_TESTS to make hnix tests conditional
Otherwise requires the `hpack` executable to be in scope, which cannot be
assumed (contrary to the `nix` executable).
2018-05-14 23:56:10 +02:00
Alexandre Esteves 701f15f94a Abort on nix prior to 2.0 2018-05-14 22:47:04 +01:00