appveyor.yml 1.2 KB
Newer Older
1
clone_folder: "c:\\new-hadrian"
2 3 4 5 6 7 8 9 10 11 12 13
environment:
  global:
    STACK_ROOT: "c:\\sr"

cache:
    - "c:\\sr -> appveyor.yml"

install:
    # Get Stack
    - curl -ostack.zip -LsS --insecure https://www.stackage.org/stack/windows-x86_64
    - 7z x stack.zip stack.exe

14
    # Note: AppVeyor has already cloned Hadrian into c:\new-hadrian
15 16
    # Fetch GHC sources into c:\ghc
    - cd ..
17 18 19 20 21 22 23 24 25
    - git clone --recursive git://git.haskell.org/ghc.git
    # GHC comes with an older version of Hadrian, so we delete it
    - rm -rf ghc\hadrian
    # Copy new Hadrian into ./ghc/hadrian
    - cp -r new-hadrian ghc\hadrian

    # Install Alex and Happy
    - set PATH=C:\Users\appveyor\AppData\Roaming\local\bin;%PATH%
    - ghc\hadrian\stack install --install-ghc alex happy > nul
26 27

    # Install all Hadrian and GHC build dependencies
28
    - cd ghc\hadrian
29 30 31 32
    - stack setup > nul
    - appveyor-retry stack exec -- pacman -S autoconf automake-wrapper make patch python tar --noconfirm

build_script:
33 34
    # Build Hadrian and run internal Hadrian tests
    - build -c selftest
35 36

    # Build GHC
37
    - build -j -c --flavour=quickest --no-progress --progress-colour=never --profile=-
38 39 40 41

    # Test GHC binary
    - cd ..
    - inplace\bin\ghc-stage2 -e 1+2