diff --git a/latest/.doctrees/Testing.doctree b/latest/.doctrees/Testing.doctree index 6669912a9f..a098ade500 100644 Binary files a/latest/.doctrees/Testing.doctree and b/latest/.doctrees/Testing.doctree differ diff --git a/latest/.doctrees/environment.pickle b/latest/.doctrees/environment.pickle index f20aa3576d..0f71e01374 100644 Binary files a/latest/.doctrees/environment.pickle and b/latest/.doctrees/environment.pickle differ diff --git a/latest/Testing.html b/latest/Testing.html index 0067bdee5c..8d81d147be 100644 --- a/latest/Testing.html +++ b/latest/Testing.html @@ -54,6 +54,7 @@
  • Testing
  • Develop packages
  • @@ -111,6 +112,29 @@

    Pull Request Testing for spack-c2sm on GitHub +

    Jenkins test with uenv

    +

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

    +
    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

    +
    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
    +
    +
    + diff --git a/latest/_sources/Testing.rst.txt b/latest/_sources/Testing.rst.txt index e21e3739db..a73b50b730 100644 --- a/latest/_sources/Testing.rst.txt +++ b/latest/_sources/Testing.rst.txt @@ -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 diff --git a/latest/index.html b/latest/index.html index 14594ab6f8..534fe0e9a4 100644 --- a/latest/index.html +++ b/latest/index.html @@ -129,6 +129,7 @@

    C2SM SpackTesting
  • Develop packages