Add hie.yaml.stack and use none cradle for test data (#626)

* Add a none cradle for test data in cabal cradle

* Add a stack explicit hie-bios config
This commit is contained in:
Javier Neira 2020-06-12 12:46:27 +02:00 committed by GitHub
parent 9084fea7e6
commit d4054ef0f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 11 deletions

View File

@ -1,12 +1,18 @@
cradle:
cabal:
- path: "./src"
component: "ghcide:lib:ghcide"
- path: "./exe"
component: "ghcide:exe:ghcide"
- path: "./test"
component: "ghcide:test:ghcide-tests"
- path: "./bench"
component: "ghcide:benchmark:ghcide-bench"
- path: "./test/preprocessor"
component: "ghcide:exe:ghcide-test-preprocessor"
multi:
- path: "./test/data"
config: { cradle: { none: } }
- path: "./"
config:
cradle:
cabal:
- path: "./src"
component: "ghcide:lib:ghcide"
- path: "./exe"
component: "ghcide:exe:ghcide"
- path: "./test"
component: "ghcide:test:ghcide-tests"
- path: "./bench"
component: "ghcide:bench:ghcide-bench"
- path: "./test/preprocessor"
component: "ghcide:exe:ghcide-test-preprocessor"

16
hie.yaml.cbl Normal file
View File

@ -0,0 +1,16 @@
cradle:
multi:
- path: "./test/data"
config: { cradle: { none: } }
- path: "./"
config:
cradle:
cabal:
- path: "./src"
component: "ghcide:lib:ghcide"
- path: "./exe"
component: "ghcide:exe:ghcide"
- path: "./test"
component: "ghcide:test:ghcide-tests"
- path: "./test/preprocessor"
component: "ghcide:exe:ghcide-test-preprocessor"

18
hie.yaml.stack Normal file
View File

@ -0,0 +1,18 @@
cradle:
multi:
- path: "./test/data"
config: { cradle: { none: } }
- path: "./"
config:
cradle:
stack:
- path: "./src"
component: "ghcide:lib"
- path: "./exe"
component: "ghcide:exe:ghcide"
- path: "./test"
component: "ghcide:test:ghcide-tests"
- path: "./bench"
component: "ghcide:bench:ghcide-bench"
- path: "./test/preprocessor"
component: "ghcide:exe:ghcide-test-preprocessor"