Add init script, fix path to stak.
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Fri, 8 Jan 2016 01:18:48 +0000 (01:18 +0000)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Fri, 8 Jan 2016 01:18:48 +0000 (01:18 +0000)
See #110. [skip ci]

.appveyor.yml

index 9e1ed1e..5ad5f0b 100644 (file)
@@ -1,6 +1,7 @@
 clone_folder: "C:\\msys64\\home\\ghc\\shake-build"
 
-install:
+init: 
+    - cd
     - set MSYSTEM=MINGW64
     - set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;%PATH%
     - curl -ostack.zip -LsS --insecure https://www.stackage.org/stack/windows-x86_64
@@ -9,12 +10,13 @@ install:
     - stack exec -- pacman -S --noconfirm gcc binutils p7zip git
     - echo "" | stack --no-terminal install alex happy shake ansi-terminal mtl
     - set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\local\bin\
-    - git clone --recursive git://git.haskell.org/ghc.git C:\msys64\home\ghc\tmp
-    - bash -lc "mv /home/ghc/tmp/* /home/ghc"
+    - git clone --recursive git://git.haskell.org/ghc.git C:\msys64\home\ghc
+
+install:
     - cd C:\msys64\home\ghc
-    - C:\stack exec -- mk/get-win32-tarballs.sh download x86_64
+    - shake-build\stack.exe exec -- mk/get-win32-tarballs.sh download x86_64
 
 build_script:
-    - bash -lc "cd /home/ghc && ./boot"
-    - bash -lc "cd /home/ghc && echo \"\" | ./configure"
-    - bash -lc "cd /home/ghc && ./shake-build/build.bat -j --no-progress"
+    - bash -lc "./boot"
+    - bash -lc "echo \"\" | ./configure"
+    - bash -lc "./shake-build/build.bat -j --no-progress"