Move cabal folder inside /home/ghc.
[ghc.git] / .appveyor.yml
1 clone_folder: "C:\\msys64\\home\\ghc\\shake-build"
2
3 cache:
4     - "C:\\msys64\\home\\ghc\\.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 /home/ghc/.cabal"
12     - bash -lc "mkdir -p /usr/local"
13     - bash -lc "mkdir -p /usr/local/bin"
14     - 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"
15     - bash -lc "mv /usr/local/bin/cabal-1.22.0.0-i386-unknown-mingw32.exe /usr/local/bin/cabal.exe"
16     - bash -lc "cabal --config-file=/home/ghc/.cabal update"
17     - bash -lc "cabal --config-file=/home/ghc/.cabal install -j --prefix=/usr/local alex happy"
18     - bash -lc "git clone --recursive git://git.haskell.org/ghc.git /home/ghc"
19     - bash -lc "cd /home/ghc/shake-build && cabal --config-file=/home/ghc/.cabal install --only-dependencies"
20
21 build_script:
22     - bash -lc "cd /home/ghc && ./boot"
23     - bash -lc "cd /home/ghc && ./configure --enable-tarballs-autodownload"
24     - bash -lc "cd /home/ghc && ./shake-build/build.bat -j --no-progress"