Create ghc-tarballs/mingw-w64/x86_64/ directory.
[ghc.git] / .appveyor.yml
1 clone_folder: "C:\\msys64\\home\\ghc\\shake-build"
2
3 install:
4     - cd
5     - set MSYSTEM=MINGW64
6     - set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;C:\msys64;%PATH%
7     - set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\local\bin\;%APPVEYOR_BUILD_FOLDER%
8     - curl -ostack.zip -LsS --insecure https://www.stackage.org/stack/windows-x86_64
9     - 7z x stack.zip stack.exe
10     - 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"
11     - stack exec -- pacman -S --noconfirm gcc binutils p7zip git
12     - echo "" | stack --no-terminal install alex happy shake ansi-terminal mtl
13     - git clone --recursive git://git.haskell.org/ghc.git C:\msys64\home\ghc\tmp
14     - bash -lc "mv /home/ghc/tmp/* /home/ghc"
15     - cd C:\msys64\home\ghc
16     - stack exec -- perl boot
17     - bash -lc "cd /home/ghc; mkdir -p ghc-tarballs/mingw-w64/x86_64/"
18     - bash -lc "cd /home/ghc; exec 0</dev/null; ./configure --enable-tarballs-autodownload"
19     - ghc   --version
20     - stack --version
21     - alex  --version
22     - happy --version
23
24 build_script:
25     - cd
26     - bash -lc "./shake-build/build.bat -j --no-progress"