Commit Graph

68 Commits

Author SHA1 Message Date
Dmitry Olshansky
cf2e2a5df0 use stackage 2023-01-07 20:46:31 +01:00
Yuras
b0c74c0cd0
Build with ghc-9 (#2) 2022-04-11 13:48:26 +03:00
Dmitry Olshansky
2cc214d6fd
Merge pull request #1 from typeable/odr-relax-constraints
relax constraints
2021-09-14 17:39:23 +03:00
Dmitry Olshansky
7728d82bba
relax constraints 2021-09-13 16:25:45 +03:00
Evgenii Akentev
a642d103ec
Delete package.yaml 2019-05-23 17:12:57 +03:00
Evgenii Akentev
35d424fc75 add cabal file with updated network boundaries 2019-05-23 13:07:28 +03:00
Hardy Jones
6c6e76d383
Merge pull request #16 from joneshf/nix
Setup nix
2018-08-26 10:53:14 -07:00
joneshf
7ca92c00fc
Choose the image by sha
Reproducability and all that.
2018-08-26 10:46:20 -07:00
joneshf
c732a32f65
Use the long flag
Full English words are a bit easier to deal with, sometimes.
2018-08-26 10:34:35 -07:00
joneshf
d096c84527
Limit the number of simultaneous jobs
We might be trying to overdo it with the number of CPU cores available.
If we limit the jobs, it might speed up the build.
2018-08-26 10:28:05 -07:00
joneshf
3868f30777
Don't remove the default.nix
If we `make clean` outside of the nix shell,
we can't necessarily get back in.
Certainly, `make shell` doesn't work.
But, building `default.nix` might not work if `hpack` doesn't exist.
2018-08-11 06:38:00 -07:00
joneshf
0d599e3ff5
Remove old cache keys 2018-08-09 22:30:59 -07:00
joneshf
58cd90b103
Bust the cache 2018-08-09 22:23:50 -07:00
joneshf
af3c7d6935
Cache the dist directory as well 2018-08-09 22:18:06 -07:00
joneshf
1e3e0f2a50
Run everything in one job
We want to start parameterizing jobs on the version of GHC.
This is the first step.

Should also make things quicker as there's no interleaving of jobs.
2018-08-09 21:58:03 -07:00
joneshf
038c284219
Update CI configuration 2018-08-09 13:46:06 -07:00
joneshf
4b9cbbf9eb
Add which to the tools
This is useful for debugging things.
2018-08-09 13:45:29 -07:00
joneshf
79f82a54ac
Move to a nix-based setup
With nix, we get more reproducable builds.
Everything that goes into making the build can be specified.
The dependencies we need for development/CI can be made the same.

And, we ought to be able to parameterize the build better.
When we want to check if things compile on 8.4.x,
we can change the compiler to that version in one place.

Assuming this works out, it should make for a lower amount of overall work.
2018-08-09 08:09:26 -07:00
Hardy Jones
4a7a221ace
Merge pull request #15 from joneshf/bump-version
Bump version to 0.3.1.0
2018-08-08 04:33:20 -07:00
joneshf
9105ccce32
Fix tests
This is a thing that happens nearly every version bump.
Need to try and figure some better way to do this.
2018-08-08 04:31:11 -07:00
joneshf
87319e7424
Bump version to 0.3.1.0
Update changelog accordingly.
2018-08-08 04:24:49 -07:00
Hardy Jones
9c6855545b
Merge pull request #14 from joneshf/relax-network
Relax upper bound for `network` to 2.8
2018-08-08 03:57:38 -07:00
joneshf
e121738c59
Relax upper bound for network to 2.8
The changes from 2.6 to 2.7 don't seem to affect what we're using.
2018-08-08 03:47:45 -07:00
Hardy Jones
2ff6701ddf
Merge pull request #12 from joneshf/drop-dependencies
Drop dependencies
2018-07-29 19:53:38 -07:00
Hardy Jones
8e74691deb
Merge pull request #13 from joneshf/drop-dependencies-restyled
Drop dependencies (Restyled)
2018-07-29 19:51:54 -07:00
Restyled.io
59f560ede4 Restyled 2018-07-30 02:49:00 +00:00
joneshf
f240812a64
Simplify tests
We can eschew the conversions if we stay with `unordered-containers`.
It's semantically the same.

Also, we can drop `containers` as a dependency!
2018-07-29 19:32:14 -07:00
joneshf
a797a33866
Drop lens and lens-aeson
We can do without these two things.

It should make maintaining constraints easier and scratch builds quicker.
2018-07-29 18:58:30 -07:00
Hardy Jones
a78cb83998
Merge pull request #11 from joneshf/bump-version
Bump version to 0.3.0.1
2018-07-29 17:30:52 -07:00
joneshf
d2078173b1
Bump version to 0.3.0.1 2018-07-29 17:26:37 -07:00
Hardy Jones
9f4c91c2ec
Merge pull request #10 from joneshf/changelog
Add a changelog
2018-07-29 17:24:35 -07:00
joneshf
fd96f6c006
Add a changelog
This is like table stakes for having a usable library.
2018-07-29 17:18:38 -07:00
Hardy Jones
4322ae1c2a
Merge pull request #9 from joneshf/bump-version
Bump version to 0.3.0.0
2018-07-29 16:59:12 -07:00
joneshf
b3c40e78cc
Bump version to 0.3.0.0
`aeson`s changes were breaking changes as many instances changed.
2018-07-29 16:54:45 -07:00
Hardy Jones
6619a25bc9
Merge pull request #8 from joneshf/circleci
More CI improvements
2018-07-29 13:49:06 -07:00
joneshf
84612bc7f4
Fix step
The validate command lies...
2018-07-29 13:38:35 -07:00
joneshf
eb81172391
Add a command for GitHub status
We want a check that the build succeeded on GitHub.
Unfortunately, circleci doesn't give us a final result from a workflow.
We hack around it by making one job that does nothing really.

Hopefully they can provide a better interface for this in the future.
2018-07-29 13:26:19 -07:00
joneshf
b968bb53a4
Split out test targets
It looks like,
when we switch jobs in CI the new checkout has newer timestamps
than what's in the make cache.
Rather than dealing with that anymore, we alter the targets.

We can change `test` to ensure builds are up to date.
Then we can leave the individual test targets to run whatever is there.

In CI this means we can set the workflow to run the tests separately.
2018-07-29 13:17:19 -07:00
joneshf
c61934d560
Try using .
Looks like environment variables aren't evaluated.
Maybe there's another way to do it?
2018-07-29 12:57:56 -07:00
joneshf
a317ba5fce
Try attaching from the wowrking directory
It's unclear if this is the correct syntax.
2018-07-29 12:54:26 -07:00
joneshf
19177f0fc5
Remove accidentally added dependency 2018-07-29 12:50:11 -07:00
joneshf
b2703d5f2d
Attach the make cache
Doesn't matter if we're persisting it if we never re-attach it...
2018-07-29 12:39:26 -07:00
joneshf
c1a34f3b86
Persist the make cache
If we don't do this, the test job will try to rebuild everything.
That defeats the purpose.

Probably, we've got our Make dependencies/targets setup improprerly.
2018-07-29 12:34:55 -07:00
joneshf
2fca1f2892
Add back build target
Even though we changed the structure of the targets,
we can still make it easier on everyone if we keep the build target.
2018-07-29 12:26:42 -07:00
joneshf
aeaf909528
Typo 2018-07-29 12:24:42 -07:00
joneshf
5deb32b2c0
Separate the compile stage from testing
Might be overkill for this small of a workflow.
Good to get practice with circleci and Make.
2018-07-29 12:19:06 -07:00
joneshf
3b0f694ff3
Really fix the cabal check
I had an older version of `cabal`.
It didn't check that the `description` was longer than the `synopsis`.
The `cabal` on CI is newer.

It would be nice if everything used the same programs.
Might look into using a specific `docker` image or `nix` for this.
2018-07-29 10:12:43 -07:00
joneshf
1abae7fc5f
Cleanup Makefile
Makes most variables able to be overridden.
Simpleifies some rules.
Quiets most of the output.
2018-07-29 10:10:11 -07:00
joneshf
73e6221fb6
Use the cache to circumvent building
Since we use `stack` to run `hpack` to generate the cabal file,
we need `stack` to have its cache all setup properly.

We could eschew `hpack` to relax this requirement...
2018-07-29 09:23:13 -07:00
joneshf
d5b10959b1
Fix cabal check error 2018-07-29 09:14:10 -07:00