Skip to content
Snippets Groups Projects
Commit 654656c7 authored by Jithu Murugan's avatar Jithu Murugan
Browse files

Merge remote-tracking branch 'origin/esd-spack-installation' into esd-spack-installation

parents d516d1d3 7364c3cf
No related branches found
No related tags found
1 merge request!4feat(spack_operation): implement setup_spack_env functionality
Pipeline #58863 failed with stages
in 9 minutes and 1 second
...@@ -30,6 +30,7 @@ testing-pytest: ...@@ -30,6 +30,7 @@ testing-pytest:
script: script:
- chmod +x esd/utils/bootstrap.sh - chmod +x esd/utils/bootstrap.sh
- ./esd/utils/bootstrap.sh - ./esd/utils/bootstrap.sh
- echo "$SPACK_ENV_ACCESS_TOKEN"
- pip install . - pip install .
- pytest ./esd/tests/ -s --junitxml=test-results.xml - pytest ./esd/tests/ -s --junitxml=test-results.xml
artifacts: artifacts:
......
...@@ -145,7 +145,7 @@ def test_spack_from_scratch_concretize_5(tmp_path): ...@@ -145,7 +145,7 @@ def test_spack_from_scratch_concretize_5(tmp_path):
def test_spack_from_scratch_concretize_6(tmp_path): def test_spack_from_scratch_concretize_6(tmp_path):
install_dir = tmp_path install_dir = tmp_path
env = SpackModel('test-spack-env', install_dir, env = SpackModel('test-spack-env', install_dir,
f'https://oauth2:{SPACK_ENV_ACCESS_TOKEN}@gitlab.ebrains.eu/ri/projects-and-initiatives/virtualbraintwin/test-spack-env.git') f'https://oauth2:"$SPACK_ENV_ACCESS_TOKEN"@gitlab.ebrains.eu/ri/projects-and-initiatives/virtualbraintwin/test-spack-env.git')
repo = SpackModel('ebrains-spack-builds', install_dir, repo = SpackModel('ebrains-spack-builds', install_dir,
'https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/ebrains-spack-builds.git') 'https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/ebrains-spack-builds.git')
spack_manager = SpackManagerCreator.get_spack_manger(SpackManagerEnum.FROM_SCRATCH, env=env, repos=[repo]) spack_manager = SpackManagerCreator.get_spack_manger(SpackManagerEnum.FROM_SCRATCH, env=env, repos=[repo])
...@@ -158,7 +158,7 @@ def test_spack_from_scratch_concretize_6(tmp_path): ...@@ -158,7 +158,7 @@ def test_spack_from_scratch_concretize_6(tmp_path):
def test_spack_from_scratch_concretize_7(tmp_path): def test_spack_from_scratch_concretize_7(tmp_path):
install_dir = tmp_path install_dir = tmp_path
env = SpackModel('test-spack-env', install_dir, env = SpackModel('test-spack-env', install_dir,
'https://gitlab.ebrains.eu/ri/projects-and-initiatives/virtualbraintwin/test-spack-env.git') f'https://oauth2:"$SPACK_ENV_ACCESS_TOKEN"gitlab.ebrains.eu/ri/projects-and-initiatives/virtualbraintwin/test-spack-env.git')
repo = SpackModel('ebrains-spack-builds', install_dir, repo = SpackModel('ebrains-spack-builds', install_dir,
'https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/ebrains-spack-builds.git') 'https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/ebrains-spack-builds.git')
spack_manager = SpackManagerCreator.get_spack_manger(SpackManagerEnum.FROM_SCRATCH, env=env, repos=[repo]) spack_manager = SpackManagerCreator.get_spack_manger(SpackManagerEnum.FROM_SCRATCH, env=env, repos=[repo])
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment