Skip to content

Commit 06a8d36

Browse files
Merge pull request #24 from brandonchinn178/sdist
Run sdist in CI
2 parents e75a2be + 10c4263 commit 06a8d36

File tree

5 files changed

+70
-1
lines changed

5 files changed

+70
-1
lines changed

.circleci/config.yml

+21
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,26 @@ jobs:
184184
name: Check if generated code not up to date
185185
command: git diff --exit-code *.hs
186186

187+
run_sdist:
188+
executor: ubuntu
189+
steps:
190+
- checkout
191+
- install_stack
192+
- with_stack_cache:
193+
install_deps:
194+
- run:
195+
name: Install GHC
196+
command: stack setup
197+
- run: stack sdist
198+
- run:
199+
name: Copy package archive
200+
command: |
201+
mkdir -p .ci/
202+
cp $(stack path --dist-dir)/persistent-mtl-*.tar.gz .ci/
203+
- store_artifacts:
204+
path: .ci/
205+
destination: .
206+
187207
workflows:
188208
version: 2
189209

@@ -192,6 +212,7 @@ workflows:
192212
- lint
193213
- haddock
194214
- check_codegen
215+
- run_sdist
195216
- run_build_and_test:
196217
name: test_latest
197218
latest: true

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 0.1.0.0
2+
3+
Initial release
4+
* `SqlQueryT` + `MonadSqlQuery`
5+
* Autogenerated persistent API
6+
* `MockQueryT`

LICENSE

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Copyright 2020 Brandon Chinn
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
5+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
7+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

package.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
name: persistent-mtl
22
version: 0.1.0.0
33
maintainer: Brandon Chinn <[email protected]>
4+
synopsis: Monad transformer for the persistent API
5+
description: |
6+
A monad transformer and mtl-style type class for using the
7+
persistent API directly in your monad transformer stack.
8+
category: Database
9+
license: BSD3
10+
extra-source-files:
11+
- CHANGELOG.md
12+
- README.md
13+
- test/goldens/**/*.golden
414

515
ghc-options: -Wall
616

17+
github: brandonchinn178/persistent-mtl
18+
719
library:
820
source-dirs: src
921
dependencies:

persistent-mtl.cabal

+20-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,31 @@ cabal-version: 1.12
44
--
55
-- see: https://github.com/sol/hpack
66
--
7-
-- hash: e778c01c12d7cd9d6afd05ad2fc3b688916dfa7f3bc4d24583d8e401a117eb1b
7+
-- hash: b4cebf2dfec7ddb84809e77bf7c91ea81fd89f22a13763b7ee032b13313dfebd
88

99
name: persistent-mtl
1010
version: 0.1.0.0
11+
synopsis: Monad transformer for the persistent API
12+
description: A monad transformer and mtl-style type class for using the
13+
persistent API directly in your monad transformer stack.
14+
category: Database
15+
homepage: https://github.com/brandonchinn178/persistent-mtl#readme
16+
bug-reports: https://github.com/brandonchinn178/persistent-mtl/issues
1117
maintainer: Brandon Chinn <[email protected]>
18+
license: BSD3
19+
license-file: LICENSE
1220
build-type: Simple
21+
extra-source-files:
22+
CHANGELOG.md
23+
README.md
24+
test/goldens/persistent-2.10/sqlqueryrep_show_representation.golden
25+
test/goldens/persistent-2.11/sqlqueryrep_show_representation.golden
26+
test/goldens/persistent-2.8/sqlqueryrep_show_representation.golden
27+
test/goldens/persistent-2.9/sqlqueryrep_show_representation.golden
28+
29+
source-repository head
30+
type: git
31+
location: https://github.com/brandonchinn178/persistent-mtl
1332

1433
library
1534
exposed-modules:

0 commit comments

Comments
 (0)