@@ 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.singpolyma.net/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
''
- }
+ }]
]
}
@@ 4,17 4,21 @@ environment:
sources:
- https://git.singpolyma.net/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/