<commit_before>stages:
    - BUILD AND TEST GCC
    - BUILD AND TEST GCC MPI
    - BUILD AND TEST GCC MPI POP64
    - BUILD AND TEST GCC dbg
    - BUILD AND TEST GCC MPI dbg
    - BUILD AND TEST GCC MPI POP64 dbg
    - BUILD AND TEST INTEL
    - BUILD AND TEST INTEL MPI 
    - BUILD AND TEST INTEL MPI POP64
    - BUILD AND TEST INTEL dbg
    - BUILD AND TEST INTEL MPI dbg
    - BUILD AND TEST INTEL MPI POP64 dbg
    - BUILD AND TEST INTEL QUICK
    - BUILD AND TEST GCC QUICK
    - TEST PYHANDE


build-lua-hdf5:
    stage: .pre
    tags: 
        - hande-testing
    script:
        - module load icc
        - wget -q -O - http://www.lua.org/ftp/lua-5.3.5.tar.gz | tar xvzf -
        - cd lua-5.3.5
        - make linux &>/dev/null
        - make install INSTALL_TOP=/home/gitlab-runner/builds/oQzesuVK/0/ch/thom/hande-testing/local 
        - cd ..
        - wget -q -O - https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.4/src/hdf5-1.10.4.tar.gz | tar xvzf -
        - cd hdf5-1.10.4
        - ./configure --prefix=/home/gitlab-runner/builds/oQzesuVK/0/ch/thom/hande-testing/local/hdf5-gnu --enable-fortran --enable-fortran2003 --enable-cxx &> /dev/null
        - make &> /dev/null
        - make install &> /dev/null
        - cd .. && rm -r hdf5-1.10.4
        - wget -q -O - https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.4/src/hdf5-1.10.4.tar.gz | tar xvzf -
        - cd hdf5-1.10.4
        - export FC=ifort
        - export CC=icc
        - export CXX=icpc
        - ./configure --prefix=/home/gitlab-runner/builds/oQzesuVK/0/ch/thom/hande-testing/local/hdf5-intel --enable-fortran --enable-fortran2003 --enable-cxx  &> /dev/null
        - make &> /dev/null
        - make install &> /dev/null
        - cd ..
        - git clone https://github.com/jsspencer/testcode.git
    artifacts:
        paths:
            - local
            - testcode
        expire_in: 1 week

test-gcc:
    stage: BUILD AND TEST GCC
    tags: 
        - hande-testing
    before_script:
        - module load cmake
        - module load anaconda/python3/5.3.1
    script:
        - ./cmakeconfig.py --fc=gfortran --cc=gcc --lua=./local/ --hdf5=./local/hdf5-gnu --det-size=64 --pop-size=64
        - cd build && make -j 6 && cd ..
        - cd test_suite
        - ../testcode/bin/testcode.py -e ../bin/hande.x -c serial --total-processors=6
    only:
        - schedules
    artifacts:
        when: on_failure
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
        paths:
            - test_suite/**/test.err*
            - test_suite/**/test.out*
        expire_in: 1 week

test-gcc-mpi:
    stage: BUILD AND TEST GCC MPI
    tags: 
        - hande-testing
    before_script:
        - module load anaconda/python3/5.3.1
        - module load mpi/openmpi/64/gnu/3.1.2
        - module load mkl
        - module load cmake
    script:
        - ./cmakeconfig.py --mpi --fc=mpif90 --cc=mpicc --mpi-with-scalapack --lua=./local/ --hdf5=./local/hdf5-gnu
        - cd build && make -j 6 && cd ..
        - cd test_suite
        - ../testcode/bin/testcode.py -e ../bin/hande.x -c mpi --processors=4
    only:
        - schedules
    artifacts:
        when: on_failure
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
        paths:
            - test_suite/**/test.err*
            - test_suite/**/test.out*
        expire_in: 1 week

test-gcc-mpi-64:
    stage: BUILD AND TEST GCC MPI POP64
    tags: 
        - hande-testing
    before_script:
        - module load anaconda/python3/5.3.1
        - module load mpi/openmpi/64/gnu/3.1.2
        - module load mkl
        - module load cmake
    script:
        - ./cmakeconfig.py --mpi --fc=mpif90 --cc=mpicc --mpi-with-scalapack --lua=./local/ --hdf5=./local/hdf5-gnu --det-size=64 --pop-size=64
        - cd build && make -j 6 && cd ..
        - cd test_suite
        - ../testcode/bin/testcode.py -e ../bin/hande.x -c pop64_mpi --processors=4
    only:
        - schedules
    artifacts:
        when: on_failure
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
        paths:
            - test_suite/**/test.err*
            - test_suite/**/test.out*
        expire_in: 1 week

test-gcc-dbg:
    stage: BUILD AND TEST GCC dbg
    tags: 
        - hande-testing
    before_script:
        - module load anaconda/python3/5.3.1
        - module load cmake
    script:
        - ./cmakeconfig.py --fc=gfortran --cc=gcc --lua=./local/ --hdf5=./local/hdf5-gnu --det-size=64 --pop-size=64 --type=debug
        - cd build && make -j 6 && cd ..
        - cd test_suite
        - ../testcode/bin/testcode.py -e ../bin/hande.x -c serial --total-processors=6
    only:
        - schedules
    artifacts:
        when: on_failure
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
        paths:
            - test_suite/**/test.err*
            - test_suite/**/test.out*
        expire_in: 1 week

test-gcc-mpi-dbg:
    stage: BUILD AND TEST GCC MPI dbg
    tags: 
        - hande-testing
    before_script:
        - module load anaconda/python3/5.3.1
        - module load mpi/openmpi/64/gnu/3.1.2
        - module load mkl
        - module load cmake
    script:
        - ./cmakeconfig.py --mpi --fc=mpif90 --cc=mpicc --mpi-with-scalapack  --lua=./local/ --hdf5=./local/hdf5-gnu --type=debug
        - cd build && make -j 6 && cd ..
        - cd test_suite
        - ../testcode/bin/testcode.py -e ../bin/hande.x -c mpi --processors=4
    only:
        - schedules
    artifacts:
        when: on_failure
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
        paths:
            - test_suite/**/test.err*
            - test_suite/**/test.out*
        expire_in: 1 week

test-gcc-mpi-64-dbg:
    stage: BUILD AND TEST GCC MPI POP64 dbg
    tags: 
        - hande-testing
    before_script:
        - module load anaconda/python3/5.3.1 
        - module load mpi/openmpi/64/gnu/3.1.2
        - module load mkl
        - module load cmake<commit_msg>conflict resolution of gitlab ci for merging public main into development main<commit_after>stages:
    - BUILD AND TEST GCC
    - BUILD AND TEST GCC MPI
    - BUILD AND TEST GCC MPI POP64
    - BUILD AND TEST GCC dbg
    - BUILD AND TEST GCC MPI dbg
    - BUILD AND TEST GCC MPI POP64 dbg
    - BUILD AND TEST INTEL
    - BUILD AND TEST INTEL MPI 
    - BUILD AND TEST INTEL MPI POP64
    - BUILD AND TEST INTEL dbg
    - BUILD AND TEST INTEL MPI dbg
    - BUILD AND TEST INTEL MPI POP64 dbg
    - BUILD AND TEST INTEL QUICK
    - BUILD AND TEST GCC QUICK
    - TEST PYHANDE


build-lua-hdf5:
    stage: .pre
    tags: 
        - hande-testing
    script:
        - module load icc
        - wget -q -O - http://www.lua.org/ftp/lua-5.3.5.tar.gz | tar xvzf -
        - cd lua-5.3.5
        - make linux &>/dev/null
        - make install INSTALL_TOP=/home/gitlab-runner/builds/oQzesuVK/0/ch/thom/hande-testing/local 
        - cd ..
        - wget -q -O - https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.4/src/hdf5-1.10.4.tar.gz | tar xvzf -
        - cd hdf5-1.10.4
        - ./configure --prefix=/home/gitlab-runner/builds/oQzesuVK/0/ch/thom/hande-testing/local/hdf5-gnu --enable-fortran --enable-fortran2003 --enable-cxx &> /dev/null
        - make &> /dev/null
        - make install &> /dev/null
        - cd .. && rm -r hdf5-1.10.4
        - wget -q -O - https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.4/src/hdf5-1.10.4.tar.gz | tar xvzf -
        - cd hdf5-1.10.4
        - export FC=ifort
        - export CC=icc
        - export CXX=icpc
        - ./configure --prefix=/home/gitlab-runner/builds/oQzesuVK/0/ch/thom/hande-testing/local/hdf5-intel --enable-fortran --enable-fortran2003 --enable-cxx  &> /dev/null
        - make &> /dev/null
        - make install &> /dev/null
        - cd ..
        - git clone https://github.com/jsspencer/testcode.git
    artifacts:
        paths:
            - local
            - testcode
        expire_in: 1 week

test-gcc:
    stage: BUILD AND TEST GCC
    tags: 
        - hande-testing
    before_script:
        - module load cmake
        - module load anaconda/python3/5.3.1
    script:
        - ./cmakeconfig.py --fc=gfortran --cc=gcc --lua=./local/ --hdf5=./local/hdf5-gnu --det-size=64 --pop-size=64
        - cd build && make -j 6 && cd ..
        - cd test_suite
        - ../testcode/bin/testcode.py -e ../bin/hande.x -c serial --total-processors=6
    only:
        - schedules
    artifacts:
        when: on_failure
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
        paths:
            - test_suite/**/test.err*
            - test_suite/**/test.out*
        expire_in: 1 week

test-gcc-mpi:
    stage: BUILD AND TEST GCC MPI
    tags: 
        - hande-testing
    before_script:
        - module load anaconda/python3/5.3.1
        - module load mpi/openmpi/64/gnu/3.1.2
        - module load mkl
        - module load cmake
    script:
        - ./cmakeconfig.py --mpi --fc=mpif90 --cc=mpicc --mpi-with-scalapack --lua=./local/ --hdf5=./local/hdf5-gnu
        - cd build && make -j 6 && cd ..
        - cd test_suite
        - ../testcode/bin/testcode.py -e ../bin/hande.x -c mpi --processors=4
    only:
        - schedules
    artifacts:
        when: on_failure
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
        paths:
            - test_suite/**/test.err*
            - test_suite/**/test.out*
        expire_in: 1 week

test-gcc-mpi-64:
    stage: BUILD AND TEST GCC MPI POP64
    tags: 
        - hande-testing
    before_script:
        - module load anaconda/python3/5.3.1
        - module load mpi/openmpi/64/gnu/3.1.2
        - module load mkl
        - module load cmake
    script:
        - ./cmakeconfig.py --mpi --fc=mpif90 --cc=mpicc --mpi-with-scalapack --lua=./local/ --hdf5=./local/hdf5-gnu --det-size=64 --pop-size=64
        - cd build && make -j 6 && cd ..
        - cd test_suite
        - ../testcode/bin/testcode.py -e ../bin/hande.x -c pop64_mpi --processors=4
    only:
        - schedules
    artifacts:
        when: on_failure
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
        paths:
            - test_suite/**/test.err*
            - test_suite/**/test.out*
        expire_in: 1 week

test-gcc-dbg:
    stage: BUILD AND TEST GCC dbg
    tags: 
        - hande-testing
    before_script:
        - module load anaconda/python3/5.3.1
        - module load cmake
    script:
        - ./cmakeconfig.py --fc=gfortran --cc=gcc --lua=./local/ --hdf5=./local/hdf5-gnu --det-size=64 --pop-size=64 --type=debug
        - cd build && make -j 6 && cd ..
        - cd test_suite
        - ../testcode/bin/testcode.py -e ../bin/hande.x -c serial --total-processors=6
    only:
        - schedules
    artifacts:
        when: on_failure
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
        paths:
            - test_suite/**/test.err*
            - test_suite/**/test.out*
        expire_in: 1 week

test-gcc-mpi-dbg:
    stage: BUILD AND TEST GCC MPI dbg
    tags: 
        - hande-testing
    before_script:
        - module load anaconda/python3/5.3.1
        - module load mpi/openmpi/64/gnu/3.1.2
        - module load mkl
        - module load cmake
    script:
        - ./cmakeconfig.py --mpi --fc=mpif90 --cc=mpicc --mpi-with-scalapack  --lua=./local/ --hdf5=./local/hdf5-gnu --type=debug
        - cd build && make -j 6 && cd ..
        - cd test_suite
        - ../testcode/bin/testcode.py -e ../bin/hande.x -c mpi --processors=4
    only:
        - schedules
    artifacts:
        when: on_failure
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
        paths:
            - test_suite/**/test.err*
            - test_suite/**/test.out*
        expire_in: 1 week

test-gcc-mpi-64-dbg:
    stage: BUILD AND TEST GCC MPI POP64 dbg
    tags: 
        - hande-testing
    before_script:
        - module load anaconda/python3/5.3.1
        - module load mpi/openmpi/64/gnu/3.1.2
        - module load mkl
        - module load cmake
{'fraction_non_alphanumeric': 0.1342957864696995, 'fraction_numerical': 0.028705724357898272, 'mean_word_length': 1.5443092035020287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5344536', 'n_tokens_mistral': 4614, 'n_tokens_neox': 4337, 'n_words': 938}