From b9217b9d379c0253d0abfd6579864dfe5d3a8841 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Fri, 18 Oct 2019 14:47:08 -0400 Subject: [PATCH] Build the system tests driver too --- .circleci/config.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 503fe3c9..ae8ac923 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,6 +33,27 @@ jobs: export NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/$(cat nixpkgs.rev).tar.gz nix-build nixos/unit-tests.nix && cat result + system-tests-driver: + # Cannot actually run the system tests on CircleCI but we can build + # everything that makes them up. This by itself can catch a lot of + # problems. + docker: + - image: "nixos/nix:2.2.1" + steps: + - run: + name: "Install Git" + command: | + # Required for the checkout step + nix-env -i git openssh + + - "checkout" + + - run: + name: "Run Tests" + command: | + export NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/$(cat nixpkgs.rev).tar.gz + nix-build nixos/system-tests.nix -A driver + build: docker: - image: "nixos/nix:2.2.1" @@ -71,3 +92,4 @@ workflows: jobs: - "test" - "build" + - "system-tests-driver" -- GitLab