circleci: Build with Hadrian
authorBen Gamari <ben@smart-cactus.org>
Sat, 18 Nov 2017 19:50:24 +0000 (14:50 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 23 Nov 2017 14:56:56 +0000 (09:56 -0500)
.circleci/config.yml

index a830f94..bac3276 100644 (file)
@@ -53,6 +53,18 @@ aliases:
     run:
       name: Build
       command: "make -j$THREADS"
+  - &build_hadrian
+    run:
+      name: Build Hadrian
+      command: |
+        cd hadrian
+        cabal update
+        cabal install
+  - &build_ghc_hadrian
+    run:
+      name: Build GHC using Hadrian
+      command: |
+        $HOME/.cabal/bin/hadrian -j$THREADS
   - &test
     run:
       name: Test
@@ -140,6 +152,22 @@ jobs:
       #- *collectartifacts
       #- *storeartifacts
 
+  "validate-hadrian-x86_64-linux":
+    resource_class: xlarge
+    docker:
+      - image: haskell:8.2
+    environment:
+      <<: *buildenv
+    steps:
+      - *precheckout
+      - checkout
+      - *prepare
+      - *submodules
+      - *boot
+      - *configure_unix
+      - *build_hadrian
+      - *build_ghc_hadrian
+
   "validate-x86_64-linux-unreg":
     resource_class: xlarge
     docker:
@@ -193,6 +221,7 @@ workflows:
     # - validate-x86_64-freebsd
     - validate-x86_64-darwin
     - validate-x86_64-linux-llvm
+    - validate-hadrian-x86_64-linux
 
   nightly:
     triggers: