-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
previously, ci/ was for things "run by ci" and hack/ was for things "run by devs". ci/ would typically prefer to start with a SHA and fetch a reproducible input, while hack/ would always run with host paths. with the last slew of changes it's pretty easy to unify them so they take a `src` value on stdin, which can be easily passed with -i src=./ during dev.
- Loading branch information
Showing
18 changed files
with
62 additions
and
85 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,8 @@ | ||
#!/usr/bin/env bass | ||
|
||
(defn main [] | ||
(for [{sha :sha} *stdin*] | ||
(use (*dir*/../project)) | ||
(let [repo (project:checkout sha)] | ||
(run (*dir*/test {:src repo})) | ||
(run (*dir*/nix-check {:src repo}))))) |
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,13 @@ | ||
#!/usr/bin/env bass | ||
|
||
(defn main [] | ||
(for [{src (:src *dir*/../) | ||
version (:version "dev") | ||
os (:os "linux") | ||
arch (:arch "amd64")} *stdin*] | ||
(use (src/project)) | ||
|
||
(log "building and smoke-testing %s" src) | ||
(let [dist (project:build src version os arch)] | ||
(project:smoke-test dist) | ||
(emit dist *stdout*)))) |
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 @@ | ||
#!/usr/bin/env bass | ||
|
||
(defn main [] | ||
(for [{src (:src *dir*/../) | ||
version (:version "dev") | ||
os (:os "linux") | ||
arch (:arch "amd64")} *stdin*] | ||
(use (src/project)) | ||
(emit (project:docs src) *stdout*))) |
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,7 @@ | ||
#!/usr/bin/env bass | ||
|
||
(defn main testflags | ||
(for [{src (:src *dir*/../)} *stdin*] | ||
(use (src/project)) | ||
(log "running nix-check") | ||
(run (project:nix-checks 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
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,7 @@ | ||
#!/usr/bin/env bass | ||
|
||
(defn main testflags | ||
(for [{src (:src *dir*/../)} *stdin*] | ||
(use (src/project)) | ||
(log "running tests") | ||
(run (project:tests src ["./..." & testflags])))) |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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