summaryrefslogtreecommitdiff
path: root/hadrian/appveyor.yml
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-10-23 14:20:13 -0400
committerBen Gamari <ben@smart-cactus.org>2018-10-23 14:20:13 -0400
commit94756201349685a34c4495addd3484fdfcc8b498 (patch)
treefd4a9cee20d3c2b79f56ded7e02fb0c01b26b6c9 /hadrian/appveyor.yml
parent575b35f4cdc18045bccd42d341d6f25d95c0696c (diff)
parent45f3bff7016a2a0cd9a5455a882ced984655e90b (diff)
downloadhaskell-94756201349685a34c4495addd3484fdfcc8b498.tar.gz
Add 'hadrian/' from commit '45f3bff7016a2a0cd9a5455a882ced984655e90b'
git-subtree-dir: hadrian git-subtree-mainline: 575b35f4cdc18045bccd42d341d6f25d95c0696c git-subtree-split: 45f3bff7016a2a0cd9a5455a882ced984655e90b
Diffstat (limited to 'hadrian/appveyor.yml')
-rw-r--r--hadrian/appveyor.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/hadrian/appveyor.yml b/hadrian/appveyor.yml
new file mode 100644
index 0000000000..1a18abe975
--- /dev/null
+++ b/hadrian/appveyor.yml
@@ -0,0 +1,38 @@
+clone_folder: "c:\\new-hadrian"
+environment:
+ global:
+ STACK_ROOT: "c:\\sr"
+
+cache:
+ - "c:\\sr -> appveyor.yml"
+
+install:
+ # Get Stack
+ - curl -ostack.zip -LsS --insecure https://www.stackage.org/stack/windows-x86_64
+ - 7z x stack.zip stack.exe
+
+ # Note: AppVeyor has already cloned Hadrian into c:\new-hadrian
+ # Fetch GHC sources into c:\ghc
+ - cd ..
+ - git clone --recursive git://git.haskell.org/ghc.git
+ # GHC comes with an older version of Hadrian, so we delete it
+ - rm -rf ghc\hadrian
+ # Copy new Hadrian into ./ghc/hadrian
+ - cp -r new-hadrian ghc\hadrian
+
+ # Install Alex and Happy
+ - set PATH=C:\Users\appveyor\AppData\Roaming\local\bin;%PATH%
+ - ghc\hadrian\stack install --install-ghc alex happy > nul
+
+ # Install all Hadrian and GHC build dependencies
+ - cd ghc\hadrian
+ - stack setup > nul
+ - appveyor-retry stack exec -- pacman -S autoconf automake-wrapper make patch python3 tar --noconfirm
+
+build_script:
+ # Build GHC
+ - cd ..
+ - hadrian\build -c -j --flavour=quickest --integer-simple --no-progress --progress-colour=never --profile=-
+
+ # Test GHC binary
+ - _build\stage1\bin\ghc -e 1+2