git.iko.soy/distributed-process
on send-direct help sign in
37 lines 704 B history raw
1# CI build
3GHC ?= $(shell which ghc)
4CABAL ?= $(shell which cabal)
5CABAL_DEV ?= $(shell which cabal-fav)
7BASE_GIT := git://github.com/haskell-distributed
8REPOS=$(shell cat REPOS | sed '/^$$/d')
10.PHONY: all
11all: dev-install
13.PHONY: dev-install
14ifneq (,$(CABAL_DEV))
15dev-install:
16 $(CABAL_DEV) install
17else
18dev-install:
19 $(error install cabal-dev to proceed)
20endif
22.PHONY: ci
23ci: travis-install travis-test
25.PHONY: travis-install
26travis-install: $(REPOS)
27 $(CABAL) install --with-ghc=$(GHC) $(REPOS) --force-reinstalls
28 $(CABAL) install
30.PHONY: travis-test
31travis-test:
32 $(CABAL) configure --enable-tests
33 $(CABAL) build
34 $(CABAL) test --show-details=always
36$(REPOS):
37 git clone $(BASE_GIT)/$@.git