Skip to content
Snippets Groups Projects

GUI test changes and fixes

Merged Lauri Himanen requested to merge guitests into v0.11.0
34 files
+ 2214
1597
Compare changes
  • Side-by-side
  • Inline
Files
34
+ 26
1
@@ -13,10 +13,10 @@ image: gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-fair/ci-runner
stages:
- build
- prepare
- test
- release
variables:
TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-fair:${CI_COMMIT_REF_NAME}
STABLE_IMAGE: gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-fair:stable
@@ -41,6 +41,29 @@ build:
- /^dev-.*$/
- tags
prepare:
stage: prepare
image: $TEST_IMAGE
script:
- python -m nomad.cli dev metainfo > gui/src/metainfo.json
- python -m nomad.cli dev search-quantities > gui/src/searchQuantities.json
- python -m nomad.cli dev toolkit-metadata > gui/src/toolkitMetadata.json
- python -m nomad.cli dev units > gui/src/units.js
except:
- /^dev-.*$/
- tags
# The configuration files created with python are passed down as Gitlab CI
# Artifacts to the GUI tests. This ensures that the latest versions are
# always used by the tests.
artifacts:
paths:
- gui/src/metainfo.json
- gui/src/searchQuantities.json
- gui/src/parserMetadata.json
- gui/src/toolkitMetadata.json
- gui/src/units.js
expire_in: 1 hrs
python linting:
stage: test
image: $TEST_IMAGE
@@ -106,6 +129,8 @@ gui tests:
stage: test
image: node
script:
- git submodule sync
- git submodule update --init -- gui/materia
- cd gui
- yarn
- yarn run test
Loading