Run cabal in -v3 mode in bash.
[ghc.git] / .appveyor.yml
1 clone_folder: "C:\\msys64\\home\\ghc\\shake-build"
2
3 # cache:
4 #    - "C:\\msys64\\home\\cabal"
5
6 install:
7     - set MSYSTEM=MINGW64
8     - set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;%PATH%
9     - bash -lc "pacman -S --noconfirm git binutils p7zip gcc"
10     - bash -lc "curl -LsS http://www.haskell.org/ghc/dist/7.10.1/ghc-7.10.1-x86_64-unknown-mingw32.tar.xz | tar -xJ -C /mingw64 --strip-components=1"
11     - bash -lc "mkdir -p /usr/local"
12     - bash -lc "mkdir -p /usr/local/bin"
13     - bash -lc "curl -LsS https://www.haskell.org/cabal/release/cabal-install-1.22.0.0/cabal-1.22.0.0-i386-unknown-mingw32.tar.gz | tar -xz -C /usr/local/bin"
14     - bash -lc "mv /usr/local/bin/cabal-1.22.0.0-i386-unknown-mingw32.exe /usr/local/bin/cabal.exe"
15     - bash -lc "cabal update -v3"
16     - bash -lc "cabal install -j --prefix=/usr/local alex happy"
17     - git clone --recursive git://git.haskell.org/ghc.git C:\msys64\mingw64\home\ghc\tmp
18     - bash -lc "mv /home/ghc/tmp/* /home/ghc"
19     - cd C:\msys64\mingw64\home\ghc\shake-build
20     - bash -lc "cd /home/ghc/shake-build && cabal install --only-dependencies"
21
22 build_script:
23     - bash -lc "cd /home/ghc && ./boot"
24     - bash -lc "cd /home/ghc && ./configure --enable-tarballs-autodownload"
25     - bash -lc "cd /home/ghc && ./shake-build/build.bat -j --no-progress"