Skip to content

Commit 719270c

Browse files
committed
ci: add a simple shell.nix for now for ci usage for e2e tests
1 parent c6f2eb9 commit 719270c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

ci/test/ui-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set -e
2727
echo "========================"
2828
echo "RUNNING ui e2e tests"
2929

30-
nix-shell -p xvfb-run --command "xvfb-run just test-e2e"
30+
nix-shell --command "xvfb-run just test-e2e"
3131

3232
echo "========================"
3333

ui-tests/shell.nix

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# copied and adapted from https://nix.dev/tutorials/first-steps/declarative-shell.html
2+
# however, using unstable like flake.nix
3+
let
4+
5+
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable";
6+
7+
pkgs = import nixpkgs { config = {}; overlays = []; };
8+
9+
in
10+
11+
12+
pkgs.mkShellNoCC {
13+
14+
packages = with pkgs; [
15+
16+
xvfb-run
17+
18+
];
19+
20+
}

0 commit comments

Comments
 (0)