mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Add ability to skip tests through environment
This commit is contained in:
parent
136f008a03
commit
b520fa1fce
2 changed files with 25 additions and 21 deletions
|
@ -1,6 +1,7 @@
|
|||
test-19.09:
|
||||
variables:
|
||||
NIX_PATH: nixpkgs=channel:nixos-19.09
|
||||
SKIP_TESTS: manylinux,preferWheel
|
||||
script:
|
||||
- nix-shell -p git --run "nix-build --no-out-link --show-trace tests"
|
||||
|
||||
|
|
|
@ -7,28 +7,31 @@ let
|
|||
pep425Python37 = pkgs.callPackage ../pep425.nix { python = pkgs.python37; };
|
||||
pep425OSX = pkgs.callPackage ../pep425.nix { isLinux = false; };
|
||||
|
||||
skipTests = builtins.filter (t: builtins.typeOf t != "list") (builtins.split "," (builtins.getEnv "SKIP_TESTS"));
|
||||
|
||||
in
|
||||
{
|
||||
trivial = pkgs.callPackage ./trivial { inherit poetry2nix; };
|
||||
override = pkgs.callPackage ./override-support { inherit poetry2nix; };
|
||||
override-default = pkgs.callPackage ./override-default-support { inherit poetry2nix; };
|
||||
top-packages-1 = pkgs.callPackage ./common-pkgs-1 { inherit poetry2nix; };
|
||||
top-packages-2 = pkgs.callPackage ./common-pkgs-2 { inherit poetry2nix; };
|
||||
pep425 = pkgs.callPackage ./pep425 { inherit pep425; inherit pep425OSX; inherit pep425Python37; };
|
||||
env = pkgs.callPackage ./env { inherit poetry2nix; };
|
||||
git-deps = pkgs.callPackage ./git-deps { inherit poetry2nix; };
|
||||
git-deps-pinned = pkgs.callPackage ./git-deps-pinned { inherit poetry2nix; };
|
||||
cli = poetry2nix;
|
||||
path-deps = pkgs.callPackage ./path-deps { inherit poetry2nix; };
|
||||
operators = pkgs.callPackage ./operators { inherit poetry2nix; };
|
||||
preferWheel = pkgs.callPackage ./prefer-wheel { inherit poetry2nix; };
|
||||
builtins.removeAttrs
|
||||
{
|
||||
trivial = pkgs.callPackage ./trivial { inherit poetry2nix; };
|
||||
override = pkgs.callPackage ./override-support { inherit poetry2nix; };
|
||||
override-default = pkgs.callPackage ./override-default-support { inherit poetry2nix; };
|
||||
top-packages-1 = pkgs.callPackage ./common-pkgs-1 { inherit poetry2nix; };
|
||||
top-packages-2 = pkgs.callPackage ./common-pkgs-2 { inherit poetry2nix; };
|
||||
pep425 = pkgs.callPackage ./pep425 { inherit pep425; inherit pep425OSX; inherit pep425Python37; };
|
||||
env = pkgs.callPackage ./env { inherit poetry2nix; };
|
||||
git-deps = pkgs.callPackage ./git-deps { inherit poetry2nix; };
|
||||
git-deps-pinned = pkgs.callPackage ./git-deps-pinned { inherit poetry2nix; };
|
||||
cli = poetry2nix;
|
||||
path-deps = pkgs.callPackage ./path-deps { inherit poetry2nix; };
|
||||
operators = pkgs.callPackage ./operators { inherit poetry2nix; };
|
||||
preferWheel = pkgs.callPackage ./prefer-wheel { inherit poetry2nix; };
|
||||
|
||||
# Egg support not yet in channel, uncomment when channel progressed
|
||||
# eggs = pkgs.callPackage ./eggs { inherit poetry2nix; };
|
||||
# Egg support not yet in channel, uncomment when channel progressed
|
||||
# eggs = pkgs.callPackage ./eggs { inherit poetry2nix; };
|
||||
|
||||
inherit (poetry2nix) doc;
|
||||
inherit (poetry2nix) doc;
|
||||
|
||||
# manylinux requires nixpkgs with https://github.com/NixOS/nixpkgs/pull/75763
|
||||
# Once this is available in 19.09 and unstable we can re-enable the manylinux test
|
||||
#manylinux = pkgs.callPackage ./manylinux { inherit poetry2nix; };
|
||||
}
|
||||
# manylinux requires nixpkgs with https://github.com/NixOS/nixpkgs/pull/75763
|
||||
# Once this is available in 19.09 and unstable we can re-enable the manylinux test
|
||||
manylinux = pkgs.callPackage ./manylinux { inherit poetry2nix; };
|
||||
} skipTests
|
||||
|
|
Loading…
Add table
Reference in a new issue