parallelize CI

This commit is contained in:
Jörg Thalheim 2020-11-13 10:39:17 +01:00
parent 5505789e4a
commit c7826f534e
No known key found for this signature in database
GPG key ID: 003F2096411B5F92
7 changed files with 87 additions and 23 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, makeSetupHook, gnupg, sops, go, nix }:
{ stdenv, makeSetupHook, gnupg, sops, nix }:
(makeSetupHook {
substitutions = {

View file

@ -23,8 +23,11 @@ func ok(tb testing.TB, err error) {
}
func TestShellHook(t *testing.T) {
_, filename, _, _ := runtime.Caller(0)
assets := path.Join(path.Dir(filename), "test-assets")
assets := os.Getenv("TEST_ASSETS")
if assets == "" {
_, filename, _, _ := runtime.Caller(0)
assets = path.Join(path.Dir(filename), "test-assets")
}
tempdir, err := ioutil.TempDir("", "testdir")
ok(t, err)
defer os.RemoveAll(tempdir)