-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: github python matrix didn't work, use nix instead (#96)
Drops test with Python 2.7, but that wasn't working with the previous configuration anyway.
- Loading branch information
Showing
7 changed files
with
89 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Configures builds on https://garnix.io/ | ||
builds: | ||
include: | ||
- 'packages.x86_64-linux.*' | ||
- 'checks.x86_64-linux.*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
# Usage: git-format-staged [OPTION]... [FILE]... | ||
# Example: git-format-staged --formatter 'prettier --stdin-filepath "{}"' '*.js' | ||
# | ||
# Tested with Python 3.10 and Python 2.7. | ||
# Tested with Python versions 3.8 - 3.13. | ||
# | ||
# Original author: Jesse Hallett <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ name | ||
, fetchNpmDeps | ||
, git | ||
, gnused | ||
, nodejs | ||
, python3 | ||
, stdenvNoCC | ||
}: | ||
|
||
let | ||
src = ../.; | ||
npmDeps = fetchNpmDeps { | ||
inherit src; | ||
name = "${name}-deps"; | ||
hash = "sha256-QzQZOwtGfKvIU33Bfc5fQ/FZTTezoRnxysUXyPbKXtg="; | ||
}; | ||
in | ||
stdenvNoCC.mkDerivation { | ||
inherit name src; | ||
nativeBuildInputs = [ | ||
git | ||
nodejs | ||
python3 | ||
gnused | ||
]; | ||
buildPhase = '' | ||
npm install --cache "${npmDeps}"; | ||
# Patch node script interpreter lines because the nix build environment does | ||
# not have a /usr/bin/env | ||
sed -i --follow-symlinks \ | ||
'1s|#!/usr/bin/env node|#!${nodejs}/bin/node|' \ | ||
node_modules/.bin/* | ||
npm test | tee test_output | ||
''; | ||
installPhase = '' | ||
cp test_output "$out" | ||
''; | ||
} |