Skip to content
Snippets Groups Projects
Commit 6937fc86 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

fix CI: change base image from CentOS7 to Ubuntu 22.04

parent bd894226
No related branches found
No related tags found
No related merge requests found
...@@ -6,76 +6,45 @@ ...@@ -6,76 +6,45 @@
stages: stages:
- test - test
# CentOS7 STAGE # Ubuntu22.04 STAGE
test:centos7.3: test:ubuntu22.04:
stage: test stage: test
image: centos:7.3.1611 image: ubuntu:22.04
before_script: before_script:
- echo "Running centos7.3 'before_script'..." - echo "Running ubuntu22.04 'before_script'..."
- yum -y -q -e 0 install tcl - apt-get update -y
- yum -y -q -e 0 install glibc-common - apt-get install -y cmake
- yum -y -q -e 0 install glibc-devel - apt-get install -y g++
- yum -y -q -e 0 install make - apt-get install -y wget
- yum -y -q -e 0 install libicu - apt-get install -y libsqlite3-dev
- yum -y -q -e 0 install libjpeg-turbo - apt-get install -y sip-dev
- yum -y -q -e 0 install freetype - apt-get install -y libtiff-dev
- yum -y -q -e 0 install openssl - apt-get install -y libfftw3-dev
- mkdir -p /scicore/soft/modules - apt-get install -y libeigen3-dev
- ln -s /export/soft/apps/centos7/generic /scicore/soft/apps - apt-get install -y libboost-all-dev
- ln -s /export/soft/modules/centos7/generic/all /scicore/soft/modules - apt-get install -y libpng-dev
- source /export/soft/lua_lmod/centos7/lmod/lmod/init/bash - apt-get install -y python3-all
- module use /scicore/soft/modules/all - apt-get install -y python3-numpy
- module load foss/2021a - apt-get install -y python3-scipy
- module load wget/1.21.1-GCCcore-10.3.0 - apt-get install -y python3-networkx
- module load CMake/3.23.1-GCCcore-10.3.0 - apt-get install -y clustalw
- module load Python/3.9.5-GCCcore-10.3.0 - apt-get install -y voronota
- module load Eigen/3.4.0-GCCcore-10.3.0 - apt-get install -y libopenmm-dev
- module load Boost.Python/1.76.0-GCC-10.3.0 - apt-get install -y libparasail-dev
- module load LibTIFF/.4.2.0-GCCcore-10.3.0 - echo "... done running ubuntu22.04 'before_script'."
- 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: script:
- echo "Testing on CentOS 7..." - echo "Testing on Ubuntu 22.04..."
- echo " Building OST..." - echo " Building OST..."
- mkdir build-ci - mkdir build-ci
- cd build-ci - cd build-ci
- cmake .. -DENABLE_MM=1 - cmake .. -DOPTIMIZE=ON
-DOPEN_MM_LIBRARY=$EBROOTOPENMM/lib/libOpenMM.so -DENABLE_GFX=ON
-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 -DENABLE_GUI=OFF
-DUSE_RPATH=1 -DENABLE_INFO=OFF
-DPython_ROOT_DIR=$EBROOTPYTHON -DENABLE_MM=1
-DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include -DOPEN_MM_PLUGIN_DIR=/usr/lib/x86_64-linux-gnu/openmm
-DFFTW_LIBRARY=$EBROOTFFTW/lib/libfftw3f.a -DENABLE_PARASAIL=1
-DFFTW_INCLUDE_DIR=$EBROOTFFTW/include - make -j 2
-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
-DTIFF_LIBRARY=$EBROOTLIBTIFF/lib/libtiff.so
-DZLIB_INCLUDE_DIR=$EBROOTZLIB/include
-DZLIB_LIBRARY=$EBROOTZLIB/lib/libz.so
-DOPTIMIZE=1
-DCMAKE_C_FLAGS='-L${EBROOTLIBPNG}/lib/ -L${EBROOTLIBTIFF}/lib/ -L${EBROOTZLIB}/lib/ -isystem ${EBROOTBOOST}/include -isystem ${EBROOTOPENMM}/include'
-DCMAKE_CXX_FLAGS='-L${EBROOTLIBPNG}/lib/ -L${EBROOTLIBTIFF}/lib/ -L${EBROOTZLIB}/lib/ -isystem ${EBROOTBOOST}/include -isystem ${EBROOTOPENMM}/include'
-DCMAKE_EXE_LINKER_FLAGS=" -pthread"
- make -j 2 chemdict_tool
- echo " ... done building OST." - echo " ... done building OST."
- echo " Downloading chemical compounds..." - echo " Downloading chemical compounds..."
- wget ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cif.gz - wget ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cif.gz
...@@ -91,4 +60,5 @@ test:centos7.3: ...@@ -91,4 +60,5 @@ test:centos7.3:
- echo " Running unit tests for OST..." - echo " Running unit tests for OST..."
- make check - make check
- echo " ... done running unit tests for OST..." - echo " ... done running unit tests for OST..."
- echo "... done testing on CentOS 7." - echo "... done testing on Ubuntu 22.04."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment