Commit 0a36f594 authored by Daniel Firth's avatar Daniel Firth
Browse files

Add `-L` to template build and check commands

parent 2ba32e71
No related merge requests found
Pipeline #2277 passed with stages
in 6 seconds
# Changelog for flake-to-gitlab-ci
## v0.2.2.0
* Add `-L` to template build and check commands.
## v0.2.1.0
* Add `templates` to CI jobs with build and check for
......
......@@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack
name: flake-to-gitlab-ci
version: 0.2.1.0
version: 0.2.2.0
synopsis: Converts a nix flake to gitlab CI jobs.
description: Converts a nix flake to gitlab CI jobs.
category: Nix, Web, Git
......
name: flake-to-gitlab-ci
version: 0.2.1.0
version: 0.2.2.0
git: https://gitlab.homotopic.tech/haskell/flake-to-gitlab-ci
license: MIT
author: "Daniel Firth"
......
......@@ -104,14 +104,14 @@ mkNixosConfiguration x = ( sformat ("nixosConfigurations." % stext) x
mkTemplate :: Text -> Text -> (Text, Step)
mkTemplate n x = ( sformat ("templates." % stext) x
, Step [ "mkdir foo"
, "cd foo"
, sformat ("nix flake init -t ..#" % stext) x
, "git init ."
, "git add *"
, sformat ("nix build --override-input " % stext % " ../") n
, sformat ("nix flake check --override-input " % stext % " ../") n
]
, Step [ "mkdir foo"
, "cd foo"
, sformat ("nix flake init -t ..#" % stext) x
, "git init ."
, "git add *"
, sformat ("nix build -L --override-input " % stext % " ../") n
, sformat ("nix flake check -L --override-input " % stext % " ../") n
]
)
main :: IO ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment