c9f8afe3c34a4b0da104cb844a8774f6384f01b0 — Stephen Paul Weber a month ago 47e514e
Fix build steps
2 files changed, 21 insertions(+), 18 deletions(-)

M .builds.dhall/debian-stable.dhall
M .builds/debian-stable.yml
M .builds.dhall/debian-stable.dhall => .builds.dhall/debian-stable.dhall +14 -15
@@ 1,3 1,7 @@+let map = https://cloudflare-ipfs.com/ipfs/Qmet1UAmpcY8iCWKNJy2SAk79LS88X7A1LyyFuREbs2zko
+ let Entry = { mapKey: Text, mapValue: Text }
+ let Map = List Entry
+ in
  {
  	image = "debian/stable",
  	packages = [


@@ 12,30 16,25 @@ },
  	sources = ["https://git.sr.ht/~singpolyma/dhall-ruby"],
  	environment = { CI = 1 },
- 	tasks = [
- 		{ build =
+ 	tasks = map Map Map (map Entry Entry (\(sentry: Entry) ->
+ 		sentry // { mapValue = "cd dhall-ruby\n" ++ sentry.mapValue }
+ 	)) [
+ 		[{ mapKey = "lint", mapValue = "make lint" }],
+ 		[{ mapKey = "bundle", mapValue = "bundle install --path=\"../.gems\"" }],
+ 		[{ mapKey = "test", mapValue = "make test" }],
+ 		[{ mapKey = "compile_prelude", mapValue =
  			''
- 			cd dhall-ruby
- 			make lint
- 			bundle install --path="../.gems"
- 			make test
- 			''
- 		},
- 		{ build =
- 			''
- 			cd dhall-ruby
  			bundle exec ruby -E UTF-8 bin/dhall-compile -e -o /tmp/Prelude dhall-lang/Prelude
  			tar -cJf Prelude.tar.xz /tmp/Prelude/
  			curl -F'file=@Prelude.tar.xz' http://0x0.st
  			''
- 		},
- 		{ build =
+ 		}],
+ 		[{ mapKey = "cache_prelude", mapValue =
  			''
- 			cd dhall-ruby
  			bundle exec ruby -E UTF-8 bin/dhall-compile -co /tmp/PreludeCache dhall-lang/Prelude
  			tar -cJf PreludeCache.tar.xz /tmp/PreludeCache/
  			curl -F'file=@PreludeCache.tar.xz' http://0x0.st
  			''
- 		}
+ 		}]
  	]
  }

M .builds/debian-stable.yml => .builds/debian-stable.yml +7 -3
@@ 4,17 4,21 @@ sources:
  - https://git.sr.ht/~singpolyma/dhall-ruby
  tasks:
- - build: |
+ - lint: |-
      cd dhall-ruby
      make lint
+ - bundle: |-
+     cd dhall-ruby
      bundle install --path="../.gems"
+ - test: |-
+     cd dhall-ruby
      make test
- - build: |
+ - compile_prelude: |
      cd dhall-ruby
      bundle exec ruby -E UTF-8 bin/dhall-compile -e -o /tmp/Prelude dhall-lang/Prelude
      tar -cJf Prelude.tar.xz /tmp/Prelude/
      curl -F'file=@Prelude.tar.xz' http://0x0.st
- - build: |
+ - cache_prelude: |
      cd dhall-ruby
      bundle exec ruby -E UTF-8 bin/dhall-compile -co /tmp/PreludeCache dhall-lang/Prelude
      tar -cJf PreludeCache.tar.xz /tmp/PreludeCache/