From 2fbec4a484a4895ea35d6f12a8528a794041f776 Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Wed, 7 Aug 2019 12:06:05 -0400
Subject: [PATCH] attempt to CI the nix tests

---
 .circleci/config.yml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 963f0928..8e90039a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -15,6 +15,33 @@
 version: 2
 
 jobs:
+  test:
+    docker:
+      - image: "nixos/nix:2.2.1"
+    steps:
+      - run:
+          name: "Install CA Certificates"
+          command: |
+            # Required for cache and artifact interactions.  Though we use a
+            # nix image, it's actually an alpine base...  The CircleCI cache
+            # management and artifact uploader doesn't know how to use the nix
+            # ca bundle we could install.
+            apk update
+            apk add ca-certificates
+
+      - run:
+          name: "Install Git"
+          command: |
+            # Required for the checkout step
+            nix-env -i git openssh
+
+      - "checkout"
+
+      - run:
+          name: "Run Tests"
+          command: |
+            nix-build nixos/tests.nix
+
   build:
     docker:
       - image: "nixos/nix:2.2.1"
@@ -59,4 +86,5 @@ workflows:
   version: 2
   everything:
     jobs:
+      - "test"
       - "build"
-- 
GitLab