Add APPVEYOR_BUILD_FOLDER to PATH, show versions of key binaries.
[ghc.git] / .appveyor.yml
1 clone_folder: "C:\\msys64\\home\\ghc\\shake-build"
2
3 init: 
4     - cd
5     - set MSYSTEM=MINGW64
6     - set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;%PATH%
7     - curl -ostack.zip -LsS --insecure https://www.stackage.org/stack/windows-x86_64
8     - 7z x stack.zip stack.exe
9     - 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"
10     - stack exec -- pacman -S --noconfirm gcc binutils p7zip git
11     - echo "" | stack --no-terminal install alex happy shake ansi-terminal mtl
12     - set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\local\bin\;%APPVEYOR_BUILD_FOLDER%
13     - git clone --recursive git://git.haskell.org/ghc.git C:\msys64\home\ghc
14
15 install:
16     - cd C:\msys64\home\ghc
17     - stack exec -- mk/get-win32-tarballs.sh download x86_64
18     - ghc   --version
19     - stack --version
20     - alex  --version
21     - happy --version
22
23 build_script:
24     - bash -lc "./boot"
25     - bash -lc "echo \"\" | ./configure"
26     - bash -lc "./shake-build/build.bat -j --no-progress"