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