~singpolyma/dhall-ruby

ref: 1f61d1688557fd1b677bfba9b9641fab47a135c5 dhall-ruby/.builds.dhall/debian-stable.dhall -rw-r--r-- 1.7 KiB View raw
1f61d168Stephen Paul Weber Pin with CIDv1 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
let map = https://cloudflare-ipfs.com/ipfs/Qmet1UAmpcY8iCWKNJy2SAk79LS88X7A1LyyFuREbs2zko
let Entry = { mapKey: Text, mapValue: Text }
let Map = List Entry
in
{
	image = "debian/stable",
	packages = [
		"bundler",
		"curl",
		"git-extras",
		"rubocop",
		"ruby"
	],
	repositories = {
		backports = "http://ftp.ca.debian.org/debian/ stretch-backports main"
	},
	sources = ["https://git.sr.ht/~singpolyma/dhall-ruby"],
	environment = { CI = 1 },
	secrets = ["c2675a05-0d2f-4f45-af27-0af04a1fb9fe"],
	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-lang
			VERSION="$(git describe --tags)"
			cd ..
			bundle exec ruby -E UTF-8 bin/dhall-compile -e -o /tmp/Prelude dhall-lang/Prelude
			cd /tmp
			curl -H @$HOME/.pinata https://api.pinata.cloud/pinning/pinFileToIPFS -FpinataOptions="{\"cidVersion\": 1}" -FpinataMetadata="{\"name\": \"Prelude $VERSION $(date -I)\"}" $(find Prelude -type f -printf "-Ffile=@%h/%f;filename=%h/%f ")
			''
		}],
		[{ mapKey = "cache_prelude", mapValue =
			''
			cd dhall-lang
			VERSION="$(git describe --tags)"
			cd ..
			bundle exec ruby -E UTF-8 bin/dhall-compile -co /tmp/PreludeCache dhall-lang/Prelude
			cd /tmp
			curl -H @$HOME/.pinata https://api.pinata.cloud/pinning/pinFileToIPFS -FpinataOptions="{\"cidVersion\": 1}" -FpinataMetadata="{\"name\": \"Prelude Cache $VERSION $(date -I)\"}" $(find PreludeCache -type f -printf "-Ffile=@%h/%f;filename=%h/%f ")
			''
		}]
	]
}