Run configure via stack exec.
[ghc.git] / appveyor.yml
1 clone_folder: "C:\\msys64\\home\\ghc\\hadrian"
2 environment:
3   global:
4     STACK_ROOT: "c:\\sr"
5
6 cache:
7     - "c:\\sr"
8
9 install:
10     - cd
11     - set MSYSTEM=MINGW64
12     - set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;C:\msys64;%PATH%
13     - set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\local\bin\;%APPVEYOR_BUILD_FOLDER%
14     - curl -ostack.zip -LsS --insecure https://www.stackage.org/stack/windows-x86_64
15     - 7z x stack.zip stack.exe
16     - bash -lc "curl -LsS http://www.haskell.org/ghc/dist/7.10.3/ghc-7.10.3-x86_64-unknown-mingw32.tar.xz | tar -xJ -C /mingw64 --strip-components=1"
17     - stack exec -- pacman -S --noconfirm gcc binutils p7zip git
18     - echo "" | stack --no-terminal install alex happy shake ansi-terminal mtl
19
20     - git config --global url."git://github.com/ghc/packages-".insteadOf     git://github.com/ghc/packages/
21     - git config --global url."http://github.com/ghc/packages-".insteadOf    http://github.com/ghc/packages/
22     - git config --global url."https://github.com/ghc/packages-".insteadOf   https://github.com/ghc/packages/
23     - git config --global url."ssh://git@github.com/ghc/packages-".insteadOf ssh://git@github.com/ghc/packages/
24     - git config --global url."git@github.com:/ghc/packages-".insteadOf      git@github.com:/ghc/packages/
25     - git clone https://github.com/ghc/ghc --recurse-submodules --depth 1 C:\msys64\home\ghc\tmp
26
27     - ghc   --version
28     - stack --version
29     - alex  --version
30     - happy --version
31     - stack exec -- ghc-pkg list
32     - bash -lc "mv /home/ghc/tmp/* /home/ghc"
33     - cd C:\msys64\home\ghc
34     - stack exec -- perl boot
35     - bash -lc "cd /home/ghc; mkdir -p ghc-tarballs/mingw-w64/x86_64/"
36     - bash -lc "cd /home/ghc; mkdir -p ghc-tarballs/perl/"
37     - echo "" | stack --no-terminal exec -- bash "configure --enable-tarballs-autodownload"
38     - bash -lc "cat /home/ghc/hadrian/cfg/system.config"
39
40 build_script:
41     - cd C:\msys64\home\ghc\hadrian
42     - echo "" | stack --no-terminal exec -- build.bat selftest
43     - echo "" | stack --no-terminal exec -- build.bat -j --no-progress --profile=- --flavour=quick inplace/bin/ghc-stage1.exe