Skip to content

Commit

Permalink
[ADP-3181] Add new cardano-ledger-fine namespace (#35)
Browse files Browse the repository at this point in the history
- [x] moved the cardano ledger specs out of the lib
- [x] add CI checks that they fine-types check
ADP-3181
  • Loading branch information
paolino authored Sep 22, 2023
2 parents d88001f + 53d1f5a commit 651494f
Show file tree
Hide file tree
Showing 55 changed files with 23 additions and 187 deletions.
10 changes: 9 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
# Per-host variables - shared across containers on host
macos: "x86_64-darwin"
linux: "x86_64-linux"
nix: "nix develop --accept-flake-config"
nix: "nix develop --accept-flake-config --allow-import-from-derivation"

steps:

Expand Down Expand Up @@ -47,3 +47,11 @@ steps:
system: ${linux}
env:
TMPDIR: "/cache"
- label: "Check cardano-ledger-specs"
depends_on: linux-nix
command: |
${nix} --command bash -c scripts/cardano-ledger-specs.sh
agents:
system: ${linux}
env:
TMPDIR: "/cache"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ cabal*.project.local*
.ghci
hie.yaml
.direnv/
result
lib/cardano-ledger-specs/fine-types
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions lib/fine-types/fine-types.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,6 @@ test-suite unit
main-is:
Spec.hs
other-modules:
Language.FineTypes.Cardano.Ledger.AlonzoSpec
Language.FineTypes.Cardano.Ledger.AllegraSpec
Language.FineTypes.Cardano.Ledger.BabbageSpec
Language.FineTypes.Cardano.Ledger.Common
Language.FineTypes.Cardano.Ledger.MarySpec
Language.FineTypes.Cardano.Ledger.ShelleySpec
Language.FineTypes.Export.OpenAPI.SchemaSpec
Language.FineTypes.Export.OpenAPI.ValueSpec
Language.FineTypes.PackageSpec
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

55 changes: 0 additions & 55 deletions lib/fine-types/test/Language/FineTypes/Cardano/Ledger/Common.hs

This file was deleted.

25 changes: 0 additions & 25 deletions lib/fine-types/test/Language/FineTypes/Cardano/Ledger/MarySpec.hs

This file was deleted.

This file was deleted.

12 changes: 12 additions & 0 deletions scripts/cardano-ledger-specs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -euo pipefail

nix build --accept-flake-config .#fine-types:exe:fine-types
cd lib/cardano-ledger-specs/
fine_types="../../result/bin/fine-types"
$fine_types check -i Shelley.fine
$fine_types check -i Allegra.fine
$fine_types check -i Mary.fine
$fine_types check -i Alonzo.fine
$fine_types check -i Babbage.fine

0 comments on commit 651494f

Please sign in to comment.