Commit Graph

50 Commits

Author SHA1 Message Date
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
joneshf
d5d6d73769
Add rules for uploading to hackage
While it would be really nice to run this from CI,
The only way to upload a package involves using account-wide credentials.
We can either use a username/password, or an API token.
Both of these credentials have the same privileges,
and that's too much power to give to CI.

For now, we run this from the local machine.
Maybe we can think of another way that's a bit safer.
2018-07-29 09:14:10 -07:00
joneshf
e1dfee6745
Remove old cache keys
We simplified the cache.
These keys can go away now.
2018-07-29 09:14:10 -07:00
joneshf
103a65fbf9
Add a workflow
Since we renamed the single job from `build` to `test`,
we have to be explicit about what is supposed to happen.
2018-07-24 23:39:50 -07:00
joneshf
b078be7bc5
Simplify CI
We don't really need to have separate caches.
We fallback to the stack-root cache as it should have built most stuff.
We can remove it in a future commit.
It will have cached under the new key.

We also can call one command, and let Make figure everything out.
2018-07-24 23:28:15 -07:00
joneshf
a53fe52f09
Add a Makefile
We can make things easier on contributors if we setup a build system.
We can also make CI easier if we use Make.
2018-07-24 23:08:36 -07:00
Hardy Jones
9de1efa855
Merge pull request #3 from joneshf/joneshf-patch-1
Bump `aeson` upper bound
2018-07-24 07:10:06 -07:00
Hardy Jones
b970421bfb
Merge branch 'master' into joneshf-patch-1 2018-07-24 07:07:03 -07:00
Hardy Jones
dca09dada8
Merge pull request #7 from joneshf/joneshf-patch-2
Add circleci badge
2018-07-24 06:58:06 -07:00
Hardy Jones
fd6bee6637
Add circleci badge 2018-07-24 06:56:05 -07:00
Hardy Jones
ecf80ca64b
Merge pull request #6 from joneshf/circleci
Cache dependencies and compilation artifacts
2018-07-24 06:53:20 -07:00
joneshf
53a3786bef
Cache dependencies and compilation artifacts
Should speed up the build considerably.
2018-07-24 06:39:44 -07:00
joneshf
fe63e98993
Setup circleci
Looks like a minimal amount of stuff to get a full CI cycle going.
2018-07-24 06:12:24 -07:00
Hardy Jones
4e13046e1e
Bump aeson upper bound
Per https://github.com/commercialhaskell/stackage/issues/3393,
`aeson` is out of bounds.

To get back into stackage nightly, we need to be compatible with it.
2018-06-19 06:23:37 -07:00
joneshf
237e636e6c Bump version to 0.2.0.0 2018-02-19 01:45:06 -08:00
joneshf
11a3a2463c Fix notifier and version 2018-02-19 01:44:12 -08:00
joneshf
9876756b7d Bump version to 0.1.0.1 2018-02-18 19:48:07 -08:00
joneshf
272c5764a9 Add synopsis 2018-02-18 19:47:20 -08:00
joneshf
83a19e1750 Extract core rollbar to its own package
This is almost entirely copy-pasted from `wai-middleware-rollbar` 0.8.4.

The intent is to make the core data types available for other packages.
If this gets unweildy, move it right back.
2018-02-18 19:42:08 -08:00