Skip to content

Commit

Permalink
Add Node.js 12.x testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
svanderburg committed May 30, 2019
1 parent efa2c2a commit 6fa0ee8
Show file tree
Hide file tree
Showing 4 changed files with 3,574 additions and 0 deletions.
1 change: 1 addition & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ node bin/node2nix -e nix/node-env.nix -8 -d --no-copy-node-env
cd tests
node ../bin/node2nix -i tests.json -o node-packages-v8.nix -c default-v8.nix -e ../nix/node-env.nix -8 --no-copy-node-env
node ../bin/node2nix -i tests.json -o node-packages-v10.nix -c default-v10.nix -e ../nix/node-env.nix --nodejs-10 --no-copy-node-env
node ../bin/node2nix -i tests.json -o node-packages-v12.nix -c default-v12.nix -e ../nix/node-env.nix --nodejs-12 --no-copy-node-env
cd grunt
node ../../bin/node2nix -d -i package.json --supplement-input supplement.json -e ../../nix/node-env.nix --no-copy-node-env
cd ../lockfile
Expand Down
10 changes: 10 additions & 0 deletions release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ rec {
pkgs = import nixpkgs { inherit system; };
inherit system;
};
v12 = import ./tests/override-v12.nix {
pkgs = import nixpkgs { inherit system; };
inherit system;
};
grunt = import ./tests/grunt/override.nix {
pkgs = import nixpkgs { inherit system; };
inherit system;
Expand Down Expand Up @@ -76,6 +80,12 @@ rec {
in
map (name: builtins.getAttr name tests_) (builtins.attrNames tests_)
) systems)
++ pkgs.lib.flatten (map (system:
let
tests_ = tests."${system}".v12;
in
map (name: builtins.getAttr name tests_) (builtins.attrNames tests_)
) systems)
++ map (system: tests."${system}".grunt) systems
++ map (system: tests."${system}".lockfile) systems
++ map (system: tests."${system}".scoped) systems
Expand Down
17 changes: 17 additions & 0 deletions tests/default-v12.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file has been generated by node2nix 1.7.0. Do not edit!

{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}:

let
nodeEnv = import ../nix/node-env.nix {
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
inherit nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
};
in
import ./node-packages-v12.nix {
inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv;
}
Loading

0 comments on commit 6fa0ee8

Please sign in to comment.