-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into jd-fancy-throttle
- Loading branch information
Showing
14 changed files
with
158 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"enabled": 1, | ||
"hidden": true, | ||
"description": "Jobsets", | ||
"nixexprinput": "src", | ||
"nixexprpath": "jobsets.nix", | ||
"checkinterval": 300, | ||
"schedulingshares": 100, | ||
"enableemail": false, | ||
"emailoverride": "", | ||
"keepnr": 10, | ||
"inputs": { | ||
"src": { | ||
"type": "git", | ||
"value": "https://github.com/reflex-frp/reflex.git develop", | ||
"emailresponsible": false | ||
}, | ||
"nixpkgs": { | ||
"type": "git", | ||
"value": "https://github.com/NixOS/nixpkgs-channels nixos-unstable", | ||
"emailresponsible": false | ||
}, | ||
"prs": { | ||
"type": "githubpulls", | ||
"value": "reflex-frp reflex", | ||
"emailresponsible": false | ||
} | ||
} | ||
} |
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,70 @@ | ||
{ prs }: | ||
|
||
let | ||
pkgs = (import ./reflex-platform.nix {}).nixpkgs; | ||
mkFetchGithub = value: { | ||
inherit value; | ||
type = "git"; | ||
emailresponsible = false; | ||
}; | ||
in | ||
with pkgs.lib; | ||
let | ||
defaults = jobs: { | ||
inherit (jobs) description; | ||
enabled = 1; | ||
hidden = false; | ||
keepnr = 10; | ||
schedulingshares = 100; | ||
checkinterval = 120; | ||
enableemail = false; | ||
emailoverride = ""; | ||
nixexprinput = "reflex"; | ||
nixexprpath = "release.nix"; | ||
inputs = jobs.inputs // { | ||
nixpkgs = { | ||
type = "git"; | ||
value = "https://github.com/NixOS/nixpkgs-channels nixos-unstable"; | ||
emailresponsible = false; | ||
}; | ||
config = { | ||
type = "nix"; | ||
value = "{ android_sdk.accept_license = true; }"; | ||
emailresponsible = false; | ||
}; | ||
}; | ||
}; | ||
branchJobset = branch: defaults { | ||
description = "reflex-${branch}"; | ||
inputs = { | ||
reflex = { | ||
value = "https://github.com/reflex-frp/reflex ${branch}"; | ||
type = "git"; | ||
emailresponsible = false; | ||
}; | ||
}; | ||
}; | ||
makePr = num: info: { | ||
name = "reflex-pr-${num}"; | ||
value = defaults { | ||
description = "#${num}: ${info.title}"; | ||
inputs = { | ||
reflex = { | ||
#NOTE: This should really use "pull/${num}/merge"; however, GitHub's | ||
#status checks only operate on PR heads. This creates a race | ||
#condition, which can currently only be solved by requiring PRs to be | ||
#up to date before they're merged. See | ||
#https://github.com/isaacs/github/issues/1002 | ||
value = "https://github.com/reflex-frp/reflex pull/${num}/head"; | ||
type = "git"; | ||
emailresponsible = false; | ||
}; | ||
}; | ||
}; | ||
}; | ||
processedPrs = mapAttrs' makePr (builtins.fromJSON (builtins.readFile prs)); | ||
jobsetsAttrs = processedPrs // | ||
genAttrs ["develop"] branchJobset; | ||
in { | ||
jobsets = pkgs.writeText "spec.json" (builtins.toJSON jobsetsAttrs); | ||
} |
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,8 @@ | ||
let | ||
reflex-platform-src = (import <nixpkgs> {}).fetchFromGitHub { | ||
owner = "reflex-frp"; | ||
repo = "reflex-platform"; | ||
rev = "384cd850f3adf1d404bced2424b5f6efb0f415f2"; | ||
sha256 = "1ws77prqx8khmp8j6br1ij4k2v4dlgv170r9fmg0p1jivfbn8y9d"; | ||
}; | ||
in import reflex-platform-src |
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,9 @@ | ||
{ rp ? import ./reflex-platform.nix {} | ||
}: | ||
let | ||
inherit (rp.nixpkgs) lib; | ||
compilers = ["ghc8_4" "ghc8_0" "ghcjs8_4" "ghcjs8_0"]; | ||
in lib.genAttrs compilers (ghc: { | ||
reflex-useTemplateHaskell = rp.${ghc}.callPackage ./. { useTemplateHaskell = true; }; | ||
reflex = rp.${ghc}.callPackage ./. { useTemplateHaskell = false; }; | ||
}) |
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
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
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