-
Notifications
You must be signed in to change notification settings - Fork 5
/
BUILD.bazel
114 lines (109 loc) · 3.19 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
load("@rules_haskell//haskell:defs.bzl", "haskell_library")
load("//third_party/haskell/hspec-discover:build_defs.bzl", "hspec_test")
load("//tools/project:build_defs.bzl", "project")
project(license = "gpl3-https")
haskell_library(
name = "github-base",
srcs = glob([
"src/GitHub/Types/Base/*.hs",
"src/GitHub/Types/Base*.hs",
]),
ghcopts = ["-j4"],
src_strip_prefix = "src",
tags = ["no-cross"],
visibility = ["//visibility:public"],
deps = [
"//third_party/haskell:QuickCheck",
"//third_party/haskell:aeson",
"//third_party/haskell:base",
"//third_party/haskell:casing",
"//third_party/haskell:generic-arbitrary",
"//third_party/haskell:quickcheck-text",
"//third_party/haskell:text",
],
)
haskell_library(
name = "github-events",
srcs = glob([
"src/GitHub/Types/Events/*.hs",
"src/GitHub/Types/Event*.hs",
]),
ghcopts = ["-j4"],
src_strip_prefix = "src",
tags = ["no-cross"],
visibility = ["//visibility:public"],
deps = [
":github-base",
"//third_party/haskell:QuickCheck",
"//third_party/haskell:aeson",
"//third_party/haskell:base",
"//third_party/haskell:text",
],
)
haskell_library(
name = "hs-github-tools",
srcs = glob(
["src/**/*.*hs"],
exclude = [
"src/GitHub/Types/Base/*.hs",
"src/GitHub/Types/Base*.hs",
"src/GitHub/Types/Events/*.hs",
"src/GitHub/Types/Event*.hs",
],
),
src_strip_prefix = "src",
tags = ["no-cross"],
version = "0.1.3",
visibility = ["//visibility:public"],
deps = [
":github-base",
":github-events",
"//third_party/haskell:QuickCheck",
"//third_party/haskell:aeson",
"//third_party/haskell:base",
"//third_party/haskell:bytestring",
"//third_party/haskell:casing",
"//third_party/haskell:containers",
"//third_party/haskell:cryptohash",
"//third_party/haskell:directory",
"//third_party/haskell:exceptions",
"//third_party/haskell:github",
"//third_party/haskell:html",
"//third_party/haskell:http-client",
"//third_party/haskell:http-client-tls",
"//third_party/haskell:monad-parallel",
"//third_party/haskell:process",
"//third_party/haskell:quickcheck-text",
"//third_party/haskell:split",
"//third_party/haskell:tabular",
"//third_party/haskell:text",
"//third_party/haskell:time",
"//third_party/haskell:unix",
"//third_party/haskell:unordered-containers",
"//third_party/haskell:uuid",
"//third_party/haskell:vector",
"//third_party/haskell:yaml",
],
)
hspec_test(
name = "testsuite",
size = "small",
args = [
"-j4",
"+RTS",
"-N4",
],
ghcopts = [
"-threaded",
"-rtsopts",
],
deps = [
":github-base",
":github-events",
":hs-github-tools",
"//third_party/haskell:QuickCheck",
"//third_party/haskell:aeson",
"//third_party/haskell:base",
"//third_party/haskell:hspec",
],
)