Skip to content
Snippets Groups Projects
  • Xavier Robin's avatar
    b71935f2
    CI: add compound lib · b71935f2
    Xavier Robin authored
    This enables tests that depend on the compound lib.
    
    Squashed commit of the following:
    
    commit b5bbb445
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 15:45:21 2024 +0100
    
        Revert "CI: test a CI failure"
    
        This reverts commit 494222f9.
    
    commit 494222f9
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 15:40:47 2024 +0100
    
        CI: test a CI failure
    
        This worfklow is expected to fail with an error in
        test_ligand_scoring.py_run. If it fails it means the compound lib is
        properly setup.
    
    commit 7d06d517
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 15:27:45 2024 +0100
    
        CI: download compounds after first build
    
    commit 89edc43d
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 15:18:25 2024 +0100
    
        CI: use make as documented in the wiki
    
    commit 4f94f46d
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 15:03:45 2024 +0100
    
        CI: try to download and build a compound lib
    
    commit 5d16d160
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 14:55:55 2024 +0100
    
        CI: try to link the compound lib differently
    
    commit 1e9803eb
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 14:31:07 2024 +0100
    
        CI: try to use the group compound lib
    
        This is likely to fail if we don't have the right mounts...
    CI: add compound lib
    Xavier Robin authored
    This enables tests that depend on the compound lib.
    
    Squashed commit of the following:
    
    commit b5bbb445
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 15:45:21 2024 +0100
    
        Revert "CI: test a CI failure"
    
        This reverts commit 494222f9.
    
    commit 494222f9
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 15:40:47 2024 +0100
    
        CI: test a CI failure
    
        This worfklow is expected to fail with an error in
        test_ligand_scoring.py_run. If it fails it means the compound lib is
        properly setup.
    
    commit 7d06d517
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 15:27:45 2024 +0100
    
        CI: download compounds after first build
    
    commit 89edc43d
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 15:18:25 2024 +0100
    
        CI: use make as documented in the wiki
    
    commit 4f94f46d
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 15:03:45 2024 +0100
    
        CI: try to download and build a compound lib
    
    commit 5d16d160
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 14:55:55 2024 +0100
    
        CI: try to link the compound lib differently
    
    commit 1e9803eb
    Author: Xavier Robin <xavier.robin@unibas.ch>
    Date:   Wed Feb 14 14:31:07 2024 +0100
    
        CI: try to use the group compound lib
    
        This is likely to fail if we don't have the right mounts...
.gitlab-ci.yml 4.16 KiB
# these are the different stages for our pipelines
# jobs in the same stage run in parallel 
# next stage doesn't start until previous stage finishes with 'OK'
# by now we only do build and test, we could add another stage "deploy" if
# needed
stages:
  - test

# CentOS7 STAGE
test:centos7.3:
  stage: test
  image: centos:7.3.1611
  before_script:
    - echo "Running centos7.3 'before_script'..."
    - yum -y -q -e 0 install tcl
    - yum -y -q -e 0 install glibc-common
    - yum -y -q -e 0 install glibc-devel
    - yum -y -q -e 0 install make
    - yum -y -q -e 0 install libicu
    - yum -y -q -e 0 install libjpeg-turbo
    - yum -y -q -e 0 install freetype
    - yum -y -q -e 0 install openssl
    - mkdir -p /scicore/soft/modules
    - ln -s /export/soft/apps/centos7/generic /scicore/soft/apps
    - ln -s /export/soft/modules/centos7/generic/all /scicore/soft/modules
    - source /export/soft/lua_lmod/centos7/lmod/lmod/init/bash
    - module use /scicore/soft/modules/all
    - module load foss/2021a
    - module load wget/1.21.1-GCCcore-10.3.0
    - module load CMake/3.23.1-GCCcore-10.3.0
    - module load Python/3.9.5-GCCcore-10.3.0
    - module load Eigen/3.4.0-GCCcore-10.3.0
    - module load Boost.Python/1.76.0-GCC-10.3.0
    - module load LibTIFF/.4.2.0-GCCcore-10.3.0
    - module load libpng/.1.6.37-GCCcore-10.3.0
    - module load HH-suite/3.2.0-gompi-2021a
    - module load Perl/5.32.1-GCCcore-10.3.0
    - module load OpenMM/7.7.0-foss-2021a
    - module load SQLite/3.35.4-GCCcore-10.3.0
    - module load dssp/2.2.1-foss-2021a
    - module load msms/2.6.1-linux-x86_64 
    - module load ClustalW2/2.1-foss-2021a
    - module load networkx/2.5.1-foss-2021a
    - echo "... done running centos7.3 'before_script'."
  script:
  - echo "Testing on CentOS 7..."
  - echo "    Building OST..."
  - mkdir build-ci
  - cd build-ci
  - cmake .. -DENABLE_MM=1
             -DOPEN_MM_LIBRARY=$EBROOTOPENMM/lib/libOpenMM.so
             -DOPEN_MM_PLUGIN_DIR=$EBROOTOPENMM/lib/plugins
             -DOPEN_MM_INCLUDE_DIR=$EBROOTOPENMM/include
             -DCOMPILE_TMTOOLS=1
             -DENABLE_INFO=OFF
             -DENABLE_GFX=OFF
             -DENABLE_GUI=OFF
             -DUSE_RPATH=1
             -DPython_ROOT_DIR=$EBROOTPYTHON
             -DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include
             -DFFTW_LIBRARY=$EBROOTFFTW/lib/libfftw3f.a
             -DFFTW_INCLUDE_DIR=$EBROOTFFTW/include
             -DSQLITE3_LIBRARY=$EBROOTSQLITE/lib/libsqlite3.so
             -DSQLITE3_INCLUDE_DIR=$EBROOTSQLITE/include
             -DBOOST_ROOT=$EBROOTBOOST
             -DPNG_LIBRARY=$EBROOTLIBPNG/lib/libpng.so
             -DPNG_PNG_INCLUDE_DIR=$EBROOTLIBPNG/include
             -DZLIB_LIBRARY=$EBROOTZLIB/lib/libz.so
             -DZLIB_INCLUDE_DIR=$EBROOTZLIB/include
             -DTIFF_INCLUDE_DIR=$EBROOTLIBTIFF/include