[commit: ghc] wip/nfs-locking: Run cabal outside bash. (f419f64)

git at git.haskell.org git at git.haskell.org
Thu Oct 26 23:58:29 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/f419f6430ff16818513a33fd802b2c09488c5311/ghc

>---------------------------------------------------------------

commit f419f6430ff16818513a33fd802b2c09488c5311
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Wed Jan 6 23:12:14 2016 +0000

    Run cabal outside bash.
    
    See #110. [skip ci]


>---------------------------------------------------------------

f419f6430ff16818513a33fd802b2c09488c5311
 .appveyor.yml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/.appveyor.yml b/.appveyor.yml
index 751bc1f..d8bb09d 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -1,7 +1,7 @@
 clone_folder: "C:\\msys64\\home\\ghc\\shake-build"
 
-cache:
-    - "C:\\msys64\\home\\cabal"
+# cache:
+#    - "C:\\msys64\\home\\cabal"
 
 install:
     - set MSYSTEM=MINGW64
@@ -9,15 +9,16 @@ install:
     - bash -lc "pacman -S --noconfirm git binutils p7zip gcc"
     - 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"
     - bash -lc "mkdir -p /home/cabal"
-    - bash -lc "chmod -R 777 /home/cabal"
     - bash -lc "mkdir -p /usr/local"
     - bash -lc "mkdir -p /usr/local/bin"
     - 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"
     - bash -lc "mv /usr/local/bin/cabal-1.22.0.0-i386-unknown-mingw32.exe /usr/local/bin/cabal.exe"
-    - bash -lc "cabal --config-file=/home/cabal update"
-    - bash -lc "cabal --config-file=/home/cabal install -j --prefix=/usr/local alex happy"
-    - bash -lc "git clone --recursive git://git.haskell.org/ghc.git /home/ghc"
-    - bash -lc "cd /home/ghc/shake-build && cabal --config-file=/home/cabal install --only-dependencies"
+    - cabal update -v
+    - cabal install -j --prefix=/usr/local alex happy
+    - git clone --recursive git://git.haskell.org/ghc.git C:\msys64\mingw64\home\ghc\tmp
+    - bash -lc "mv /home/ghc/tmp/* /home/ghc"
+    - cd C:\msys64\mingw64\home\ghc\shake-build
+    - cabal install --only-dependencies
 
 build_script:
     - bash -lc "cd /home/ghc && ./boot"



More information about the ghc-commits mailing list