-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1499 from buildtesters/spack.schema.json_reorg
reorganize examples for spack.schema.json
- Loading branch information
Showing
24 changed files
with
307 additions
and
368 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
buildtest/schemas/examples/spack.schema.json/invalid/additionalProperties/spack.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
buildspecs: | ||
additionalProperties_spack_field: | ||
type: spack | ||
executor: generic.local.sh | ||
description: additional Properties can't be specified in spack section | ||
spack: | ||
root: $HOME/spack | ||
FOO: BAR | ||
env: | ||
create: | ||
name: myproject | ||
specs: | ||
- zlib |
19 changes: 19 additions & 0 deletions
19
buildtest/schemas/examples/spack.schema.json/invalid/additionalProperties/spack_test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
buildspecs: | ||
spack_test_additionalProperties: | ||
type: spack | ||
executor: generic.local.sh | ||
description: "Check for additionalProperties in test section. FOO key is not allowed" | ||
tags: [spack] | ||
pre_cmds: | | ||
cd /tmp | ||
git clone https://github.com/spack/spack | ||
spack: | ||
root: /tmp/spack | ||
verify_spack: false | ||
install: | ||
specs: ['m4', 'zlib'] | ||
test: | ||
FOO: BAR | ||
remove_tests: true | ||
run: | ||
specs: ['m4', 'zlib'] |
81 changes: 0 additions & 81 deletions
81
buildtest/schemas/examples/spack.schema.json/invalid/examples.yml
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
buildtest/schemas/examples/spack.schema.json/invalid/mirror_type.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
buildspecs: | ||
invalid_type_mirror_field: | ||
type: spack | ||
executor: generic.local.sh | ||
description: The mirror field must be a key value pair | ||
spack: | ||
root: $HOME/spack | ||
mirror: https://caches.e4s.io | ||
env: | ||
create: | ||
name: myproject | ||
specs: | ||
- zlib |
23 changes: 23 additions & 0 deletions
23
buildtest/schemas/examples/spack.schema.json/invalid/spack_test_run_invalid_spec.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
buildspecs: | ||
spack_test_run_invalid_spec: | ||
type: spack | ||
executor: generic.local.sh | ||
description: "specs property requires a list of strings. " | ||
tags: [spack] | ||
pre_cmds: | | ||
cd /tmp | ||
git clone https://github.com/spack/spack | ||
spack: | ||
root: /tmp/spack | ||
verify_spack: false | ||
install: | ||
specs: ['m4', 'zlib'] | ||
test: | ||
remove_tests: true | ||
run: | ||
specs: ['m4', 1] | ||
results: | ||
option: '-f' | ||
post_cmds: | | ||
spack find | ||
rm -rf $SPACK_ROOT |
11 changes: 11 additions & 0 deletions
11
buildtest/schemas/examples/spack.schema.json/invalid/specs_list_check_string.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
buildspecs: | ||
specs_must_be_list_of_strings: | ||
type: spack | ||
executor: generic.local.sh | ||
description: 'specs must be a list of strings' | ||
spack: | ||
root: $HOME/spack | ||
env: | ||
create: | ||
name: myproject | ||
specs: [1, zlib] |
15 changes: 15 additions & 0 deletions
15
buildtest/schemas/examples/spack.schema.json/valid/env_activate.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
buildspecs: | ||
env_activate: | ||
type: spack | ||
executor: generic.local.sh | ||
description: Activate spack environment by name | ||
spack: | ||
root: $HOME/spack/ | ||
env: | ||
activate: | ||
name: myproject | ||
specs: | ||
- m4 | ||
- zlib | ||
install: | ||
options: '' |
14 changes: 14 additions & 0 deletions
14
buildtest/schemas/examples/spack.schema.json/valid/env_concretize.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
buildspecs: | ||
env_concretized_install: | ||
type: spack | ||
description: run 'spack concretize -f' in an environment and install specs | ||
executor: generic.local.sh | ||
spack: | ||
root: $HOME/spack/ | ||
env: | ||
create: | ||
name: myproject | ||
manifest: $HOME/spack.yaml | ||
concretize: true | ||
install: | ||
options: '--cache-only' |
15 changes: 15 additions & 0 deletions
15
buildtest/schemas/examples/spack.schema.json/valid/env_create_directory.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
buildspecs: | ||
env_create_directory: | ||
type: spack | ||
executor: generic.local.sh | ||
description: Create spack environment by directory | ||
spack: | ||
root: $HOME/spack/ | ||
env: | ||
create: | ||
dir: $HOME/spack-env/myproject | ||
specs: | ||
- 'm4' | ||
- 'zlib@1.2.11' | ||
install: | ||
options: '--cache-only' |
13 changes: 13 additions & 0 deletions
13
buildtest/schemas/examples/spack.schema.json/valid/env_create_manifest.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
buildspecs: | ||
env_create_from_manifest: | ||
type: spack | ||
executor: generic.local.sh | ||
description: Create spack enviromment from manifest file | ||
spack: | ||
root: $HOME/spack/ | ||
env: | ||
create: | ||
name: myproject | ||
manifest: $HOME/spack.yaml | ||
install: | ||
options: '--cache-only' |
15 changes: 15 additions & 0 deletions
15
buildtest/schemas/examples/spack.schema.json/valid/env_create_name.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
buildspecs: | ||
env_create_name: | ||
type: spack | ||
executor: generic.local.sh | ||
description: Create spack environment by name | ||
spack: | ||
root: $HOME/spack/ | ||
env: | ||
create: | ||
name: myproject | ||
specs: | ||
- m4 | ||
- zlib | ||
install: | ||
options: '' |
15 changes: 15 additions & 0 deletions
15
buildtest/schemas/examples/spack.schema.json/valid/env_mirror.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
buildspecs: | ||
env_mirror: | ||
type: spack | ||
executor: generic.local.sh | ||
description: declare spack mirror 'spack mirror add h5 /path/to/mirror' in environment | ||
spack: | ||
root: $HOME/spack/ | ||
env: | ||
mirror: | ||
h5: /path/to/mirror | ||
create: | ||
name: myproject | ||
manifest: $HOME/spack.yaml | ||
install: | ||
options: '--cache-only' |
Oops, something went wrong.