about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-20T21·52+0000
committerVincent Ambo <tazjin@google.com>2019-12-20T21·53+0000
commit9885036eec80305fcd44b51a1878e7118282db78 (patch)
treea7f814caba2128f46502fbcb845f70fc5d912452 /nix
parent902500c4ead7166274187dcb776048d2ecd86bfa (diff)
chore(yants): Move tests into subfolder & add to CI builds r/250
Diffstat (limited to 'nix')
-rw-r--r--nix/yants/.skip-subtree1
-rw-r--r--nix/yants/README.md2
-rw-r--r--nix/yants/tests/default.nix (renamed from nix/yants/tests.nix)6
3 files changed, 4 insertions, 5 deletions
diff --git a/nix/yants/.skip-subtree b/nix/yants/.skip-subtree
deleted file mode 100644
index 51a8e01d4e..0000000000
--- a/nix/yants/.skip-subtree
+++ /dev/null
@@ -1 +0,0 @@
-Yants subtree contains no further derivations.
diff --git a/nix/yants/README.md b/nix/yants/README.md
index 54e3e4a6a4..5d551e5a49 100644
--- a/nix/yants/README.md
+++ b/nix/yants/README.md
@@ -1,8 +1,6 @@
 yants
 =====
 
-[![Build Status](https://travis-ci.org/tazjin/yants.svg?branch=master)](https://travis-ci.org/tazjin/yants)
-
 This is a tiny type-checker for data in Nix, written in Nix.
 
 # Features
diff --git a/nix/yants/tests.nix b/nix/yants/tests/default.nix
index 6863ced066..ae144db45a 100644
--- a/nix/yants/tests.nix
+++ b/nix/yants/tests/default.nix
@@ -1,5 +1,7 @@
+{ pkgs, ... }:
+
 with builtins;
-with (import ./default.nix {});
+with pkgs.nix.yants;
 
 # Note: Derivations are not included in the tests below as they cause
 # issues with deepSeq.
@@ -89,4 +91,4 @@ deepSeq rec {
     (struct { a = int; b = option string; })
     (sum { a = int; b = option string; })
   ];
-} "All tests passed!\n"
+} (pkgs.writeText "yants-tests" "All tests passed!")