Skip to content

Commit

Permalink
Add a shell.nix file. Make CI use it.
Browse files Browse the repository at this point in the history
  • Loading branch information
mboes committed Oct 20, 2018
1 parent 2a05982 commit ed40f56
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ jobs:
- run:
name: System dependencies
command: |
export NIX_PATH=nixpkgs=$PWD/nix/default.nix
apk update --no-progress && apk --no-progress add bash ca-certificates
nix-env -iA nixpkgs.bazel nixpkgs.gcc
- run:
name: Run tests
command: bazel test //...
command: |
nix-shell --pure --run 'bazel test //...'
11 changes: 11 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ pkgs ? import ./nix/default.nix {} }:

with pkgs;

mkShell {
buildInputs = [
bazel
gcc
nix
];
}

0 comments on commit ed40f56

Please sign in to comment.