This repository has been archived by the owner on Aug 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
circle.yml
45 lines (39 loc) · 1.44 KB
/
circle.yml
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
machine:
xcode:
version: 8.0
environment:
MODE: --flavour=quickest --integer-simple
dependencies:
override:
- brew update
- brew install ghc cabal-install python3
- brew link ghc cabal-install python3
- cabal update
- cabal install alex 'happy >= 1.19.4' mtl shake QuickCheck
cache_directories:
- ~/.cabal
- ~/.ghc
- /usr/local/Cellar
compile:
override:
# Fetch GHC sources into ./ghc
- git --version
- git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/
- git clone --depth 1 --recursive git://github.com/ghc/ghc
# GHC comes with an older version of Hadrian, so we delete it
- rm -rf ghc/hadrian/.git
# move hadrian's .git into ./ghc/hadrian and perform a hard reset in order to regenerate Hadrian files
- mv .git ghc/hadrian
# NOTE: we must write them in the same line because each line
# in CircleCI is a separate process, thus you can't "cd" for the other lines
- cd ghc/hadrian; git reset --hard HEAD
- cd ghc; ./boot && PATH=~/.cabal/bin:$PATH ./configure
# XXX: export PATH doesn't work well either, so we use inline env
# Self test
- cd ghc; PATH=~/.cabal/bin:$PATH hadrian/build.sh selftest
# Build GHC
- cd ghc; PATH=~/.cabal/bin:$PATH hadrian/build.sh -j $MODE --no-progress --progress-colour=never --profile=-
test:
override:
# Test GHC binary
- ghc/_build/stage1/bin/ghc -e 1+2