Commit Graph

21 Commits

Author SHA1 Message Date
Simon Jakobi cd49b65c23 Move HsYAML-based code to new package dhall-yaml (#1514)
* Shared code for the dhall-to-yaml[-ng] executables stays in dhall-json.
* Shared tests are in dhall-yaml.

Fixes #1435.
2019-11-07 12:11:04 +00:00
Simon Jakobi 976f70752d dhall-lsp-server: Fix doctests (#1505) 2019-11-02 01:29:26 +00:00
Simon Jakobi 8e52b9da45 AppVeyor: Allow branch builds for branches containing "appveyor-build-branch" (#1484)
… as discussed in https://github.com/dhall-lang/dhall-haskell/pull/1479.
2019-10-28 18:26:29 +00:00
Simon Jakobi 149e80346b
AppVeyor: Install stack without using Chocolatey (#1479)
Also don't build branches that have "appveyor" in their name.
That seemed just redundant to me.
2019-10-26 22:24:54 +02:00
mujx 645b71d6b3 Functional tests setup for the LSP server (#1396)
* Functional tests setup for the LSP server

* Add nix derivation for lsp-test-0.6.1.0

* Register fixture files

* Enable functional tests on appveyor

* Attempt to fix Position errors

* Fix `dhall-lsp-server` to specify a UTF8 locale

Related to https://github.com/dhall-lang/dhall-haskell/issues/1356#issuecomment-536840612

* Specify utf8 encoding for tests

* Add test for hovering functionality

* Add glob to list fixture files

* Remove extra do
2019-10-10 02:27:15 +00:00
Javier Neira cc09c56788 Generate artifact zips only for tags (#1319) 2019-09-17 05:33:49 +00:00
quasicomputational 4c6d76e4a8 Run all of the dhall package's tests on Appveyor. (#1142)
This entails a bunch of surgery to the package set used with LTS 6.
Because I was seeing errors, I disabled allow-newer and found this
consistent package set. I also needed a newer version of `tls`, which
entailed a bunch of bumps.
2019-08-20 14:38:01 +00:00
Simon Jakobi a2118eaeee Tune the AppVeyor config some more (#1214)
* Try to cache the extra-deps from stack-lts-6.yaml

* Limit `stack bench` to the dhall package

For some reason `stack bench` triggers a rebuild of _all_ the local
packages, which we don't need.
2019-08-08 12:08:25 +00:00
Simon Jakobi e39650ce7f Try to improve AppVeyor's dependency caching (#1207)
* This might fix a syntax problem:
  https://www.appveyor.com/docs/build-cache/#configuring-cache-items
  says:

      Note the use of single quotes around the entire line, when
      environment variables are used.

* This adds the AppVeyor config to the files which invalidate the cache
  when changed.

Context: #1063.
2019-08-07 05:21:58 +00:00
Javier Neira 4d0058b71d Use ghc-8.6.5 in default stack.yaml and make appveyor use it (#1182)
* Make it no buildable in windows as suggested by @sjakobi

* Use last lts resolver for ghc-8.6.5

* Remove unused stack yaml file

* Use default stack yaml
2019-08-01 13:01:16 +00:00
Gabriel Gonzalez 90b62ee9d7 Replace `dhall-to-text` with `dhall text` subcommand (#1090)
Fixes #1087
2019-07-08 17:18:09 +00:00
Simon Jakobi 15e981f61c
Fix benchmarks, run them on AppVeyor (#1033)
Since we only want to ensure that the benchmarks continue to
work, we use the following benchmark arguments to run them
as quickly as possible:

- `--quick` ensures that gauge runs only a single sample.
- `--min-duration=0` sets the number of iterations per sample to 1.
- `--include-first-iter` causes gauge to accept that one iteration
  instead of discarding it and running a second one.

This also removes the dhall-command benchmark:

This was a non-standard benchmark that failed when run
without input from stdin. To replace this profiling tool,
I have added instructions for profiling the main executables
to the README.
2019-07-01 12:52:43 +02:00
Dmitry Dolgov 0bf4e41020 Fix appveyor tests (#1037)
Fixes #1034

Fixes the `import/success/hashFromCache`  test on Windows

Disables currently broken dhall-lsp-server tests
2019-06-30 14:35:55 +02:00
Javier Neira 2a37b2e7bf Bump up lower bound of aeson-pretty (#978) 2019-06-01 07:10:38 -07:00
Dmitry Dolgov 07906673af [POC] Add 'quoted' option (#941)
Allow to generare quoted scalars if needed via providing a custom encode
options to Data.Yaml.encodeWith. So far two corner cases from yaml
itself (an empty scalar, and special strings) are omitted in the
implementation.
2019-05-12 07:44:12 -07:00
Javier Neira 91f3cae1bf Add json-to-dhall to appveyor artifacts (#894)
* Add json-to-dhall to dhall-json artifact

* Make json-to-dhall buildable with ghc-7.10

* Remove commented buildable field

* Remove unused import Semigroup
2019-04-16 12:52:55 +02:00
Javier Neira af2c02cf28
Make lts-12 the default stack configuration in appveyor to avoid build timeouts (#893)
* Use lts-12
* Remove cache on fail and add workaround to fix build with stack
* Add dhall-lsp-server to lts-12
* Commenting out default stack.yaml
* Bump up megaparsec version
2019-04-16 07:33:32 +02:00
Javier Neira 0804689da1 Update tests and include dhall-lsp-server in appveyor (#889) 2019-04-11 16:47:07 -07:00
PanAeon f2f4fc2979 Add dhall-lsp-server (#843) 2019-03-06 21:41:38 -08:00
Javier Neira e8d4b78a3f Build dhall-json with lts-6 in appveyor (#818) 2019-02-15 15:09:35 -08:00
Javier Neira a2a7985f5e Use appveyor to build, test and deploy in windows (#785) 2019-01-22 08:15:29 -08:00