CircleCI: Perform nightly validation of unregisterised build
authorBen Gamari <ben@smart-cactus.org>
Sat, 11 Nov 2017 23:53:56 +0000 (18:53 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 23 Nov 2017 14:56:56 +0000 (09:56 -0500)
.circleci/config.yml

index 5ca1ba4..aeedc15 100644 (file)
@@ -37,6 +37,10 @@ aliases:
     run:
       name: Configure
       command: ./configure --target=x86_64-unknown-freebsd10
+  - &configure_unreg
+    run:
+      name: Configure
+      command: ./configure --enable-unregisterised
   - &make
     run:
       name: Build
@@ -124,6 +128,22 @@ jobs:
       #- *collectartifacts
       #- *storeartifacts
 
+  "validate-x86_64-linux-unreg":
+    resource_class: xlarge
+    docker:
+      - image: haskell:8.2
+    environment:
+      <<: *buildenv
+    steps:
+      - *precheckout
+      - checkout
+      - *prepare
+      - *submodules
+      - *boot
+      - *configure_unreg
+      - *make
+      - *test
+
 workflows:
   version: 2
   validate:
@@ -133,6 +153,17 @@ workflows:
     # - validate-x86_64-freebsd
     - validate-x86_64-darwin
 
+  nightly:
+    triggers:
+      - schedule:
+          cron: "0 0 * * *"
+          filters:
+            branches:
+              only:
+                - master
+    jobs:
+    - validate-x86_64-linux-unreg
+
 notify:
   webhooks:
     - url: https://phabricator.haskell.org/harbormaster/hook/circleci/