Skip to content
Snippets Groups Projects
Commit 7364c3cf authored by Adrian Ciu's avatar Adrian Ciu
Browse files

esd-spack-installation: added spack install packages method

parent 7fa44050
No related branches found
No related tags found
1 merge request!4feat(spack_operation): implement setup_spack_env functionality
Pipeline #58861 failed with stages
in 9 minutes and 1 second
...@@ -31,8 +31,8 @@ testing-pytest: ...@@ -31,8 +31,8 @@ testing-pytest:
- 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" - 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:
when: always when: always
reports: reports:
......
...@@ -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,
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])
......
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