-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TT-1042] Add nix shell support (#898)
* Add nix shell support * Fix CGO issue * Update messed up readme * Use nix in CI * Debug complete, only show errors again in test outputs * cleanup helm and go mod downloads in ci * Bump flake lock to get updated versions * Fix go build issues by putting in the newer apple sdk by default. Does not affect other platforms
- Loading branch information
Showing
15 changed files
with
277 additions
and
40 deletions.
There are no files selected for viewing
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 @@ | ||
use flake . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: '' | ||
generated: '0001-01-01T00:00:00Z' | ||
repositories: | ||
- caFile: '' | ||
certFile: '' | ||
insecure_skip_tls_verify: false | ||
keyFile: '' | ||
name: bitnami | ||
pass_credentials_all: false | ||
password: '' | ||
url: https://charts.bitnami.com/bitnami | ||
username: '' | ||
- caFile: '' | ||
certFile: '' | ||
insecure_skip_tls_verify: false | ||
keyFile: '' | ||
name: chainlink-qa | ||
pass_credentials_all: false | ||
password: '' | ||
url: https://raw.githubusercontent.com/smartcontractkit/qa-charts/gh-pages/ | ||
username: '' | ||
- caFile: '' | ||
certFile: '' | ||
insecure_skip_tls_verify: false | ||
keyFile: '' | ||
name: grafana | ||
pass_credentials_all: false | ||
password: '' | ||
url: https://grafana.github.io/helm-charts | ||
username: '' |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
description = "chainlink-testing-framework developement shell"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = inputs@{ self, nixpkgs, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = import nixpkgs { inherit system; overlays = [ ]; }; | ||
# The current default sdk for macOS fails to compile go projects, so we use a newer one for now. | ||
# This has no effect on other platforms. | ||
callPackage = pkgs.darwin.apple_sdk_11_0.callPackage or pkgs.callPackage; | ||
in rec { | ||
devShell = callPackage ./shell.nix { | ||
inherit pkgs; | ||
scriptDir = toString ./.; # This converts the flake's root directory to a string | ||
}; | ||
formatter = pkgs.nixpkgs-fmt; | ||
}); | ||
} |
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 @@ | ||
experimental-features = nix-command flakes |
Oops, something went wrong.