"Fossies" - the Fresh Open Source Software Archive

Member "versions-1.5.5/tests/conda_tests.bash" (27 Oct 2021, 395 Bytes) of package /linux/misc/versions-1.5.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 # versions27 is a python 2.7.x environment
    3 # versions36 is a python 3.6.x environment
    4 #
    5 
    6 function test_in_conda_env {
    7 
    8     CONDA_ENV=$1
    9 
   10     echo ""
   11     echo "################# ${CONDA_ENV} #################" 
   12 
   13     source activate ${CONDA_ENV}
   14     bash coverage.bash python-coverage
   15     source deactivate ${CONDA_ENV}
   16 
   17 }
   18 
   19 
   20 test_in_conda_env versions27
   21 test_in_conda_env versions36
   22 
   23