diff --git a/.circleci/config.yml b/.circleci/config.yml index 963f0928eb7e7dc3ffd2fc7b99bed4ac4ee4cddc..8e90039aa96e073bf6c44aa887313316a69a5f13 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"