Skip to content

Commit

Permalink
Add "Jenkins test with uenv" part to Testing.rst (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominichofer authored Nov 28, 2024
1 parent 5887a0b commit d48365c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/Testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,29 @@ To test a PR, create a comment ``launch jenkins``.
Supported machines:

* balfrin

Jenkins test with uenv
----------------------
To test spack-c2sm with an uenv, add a stage

.. code-block:: bash
stage('Create uenv') {
steps {
sh """
git clone -b fix/jenkins https://github.com/eth-cscs/uenv.git
./uenv/install --yes --destdir=$WORKSPACE
source $WORKSPACE/etc/profile.d/uenv.sh
uenv repo create
uenv image pull mch/v8:rc2
"""
}
}
and run the tests in the uenv

.. code-block:: bash
source $WORKSPACE/etc/profile.d/uenv.sh
source ./setup-env.sh /user-environment
uenv run mch/v8:rc2 -- pytest -v -n auto test/integration_test.py

0 comments on commit d48365c

Please sign in to comment.