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.
This commit is contained in:
joneshf 2018-07-29 13:26:19 -07:00
parent b968bb53a4
commit eb81172391
No known key found for this signature in database
GPG Key ID: C8FFFC4E889B880E

View File

@ -25,6 +25,23 @@ jobs:
- .stack-work
- /root/.stack
doc-test:
docker:
- image: haskell:8.2.2
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Doc test
command: make test-doc-test
for-github:
docker:
- image: alpine
steps:
- command: echo passed
sdist:
docker:
- image: haskell:8.2.2
@ -40,22 +57,15 @@ jobs:
name: Build sdist
command: make sdist
doc-test:
docker:
- image: haskell:8.2.2
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Doc test
command: make test-doc-test
workflows:
version: 2
base:
jobs:
- compile
- for-github:
requires:
- doc-test
- sdist
- sdist
- doc-test:
requires: