git.iko.soy/typeable/rollbar-hs
on master help sign in
Limit the number of simultaneous jobs
d096c84joneshf
.circleci/config.yml+2
@@ -13,6 +13,8 @@ jobs:
13 - run:
13 - run:
14 name: Compile
14 name: Compile
15 command: nix-shell --run 'make sdist test -j2'
15 command: nix-shell --run 'make sdist test -j2'
16+ environment:
17+ CABAL_BUILD_FLAGS: --jobs=2
16 - save_cache:
18 - save_cache:
17 key: v2-nix-{{ checksum "package.yaml" }}
19 key: v2-nix-{{ checksum "package.yaml" }}
18 name: Caching nix
20 name: Caching nix
Makefile+2−1
@@ -1,5 +1,6 @@
1CABAL ?= cabal
1CABAL ?= cabal
2CABAL_FLAGS ?=
2CABAL_FLAGS ?=
3+CABAL_BUILD_FLAGS ?=
3DIST ?= dist
4DIST ?= dist
4GHCID ?= ghcid
5GHCID ?= ghcid
5GHCID_FLAGS ?= --ghc-options=-fno-code
6GHCID_FLAGS ?= --ghc-options=-fno-code
@@ -22,7 +23,7 @@ $(CONFIGURE): $(CABAL_FILE)
22
23
23.PHONY: build
24.PHONY: build
24build $(DOC_TEST): $(CONFIGURE) default.nix
25build $(DOC_TEST): $(CONFIGURE) default.nix
25− $(CABAL) $(CABAL_FLAGS) build
26+ $(CABAL) $(CABAL_FLAGS) build $(CABAL_BUILD_FLAGS)
26
27
27.PHONY: check
28.PHONY: check
28check: $(CABAL_FILE)
29check: $(CABAL_FILE)