Add a cartridge test to the azure devops config (#2873)

* first pass at getting an azure devops build of the cartridge working

* typo

* rename, disable other builds for testing

* tweaking

* tweaking

* use system boost

* sudo for install

* re-enable the other tests
This commit is contained in:
Greg Landrum
2020-01-21 04:59:37 +01:00
committed by GitHub
parent 9bc0f02b20
commit 179a41dd05
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
steps:
- bash: |
sudo apt-get install -y libboost-all-dev postgresql-10 postgresql-server-dev-10
sudo service postgresql start
#sudo su postgres
sudo -u postgres createuser -s `whoami`
displayName: Setup build environment
- bash: |
mkdir build && cd build && \
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DRDK_INSTALL_INTREE=ON \
-DRDK_BUILD_CPP_TESTS=OFF \
-DRDK_BUILD_PYTHON_WRAPPERS=OFF \
-DRDK_USE_BOOST_REGEX=OFF \
-DRDK_BUILD_COORDGEN_SUPPORT=ON \
-DRDK_OPTIMIZE_POPCNT=ON \
-DRDK_BUILD_TEST_GZIP=ON \
-DRDK_BUILD_AVALON_SUPPORT=ON \
-DRDK_BUILD_INCHI_SUPPORT=ON \
-DRDK_BUILD_SWIG_WRAPPERS=OFF \
-DRDK_BUILD_THREADSAFE_SSS=ON \
-DRDK_TEST_MULTITHREADED=ON \
-DRDK_BUILD_PGSQL=ON \
-DPostgreSQL_CONFIG=/usr/bin/pg_config
displayName: Configure build (Run CMake)
- bash: |
cd build
make -j $( $(number_of_cores) ) install
sudo sh ./Code/PgSQL/rdkit/pgsql_install.sh
displayName: Build
- bash: |
cd build
sh ./Code/PgSQL/rdkit/pgsql_regress.sh
displayName: Run tests

View File

@@ -72,3 +72,12 @@ jobs:
target_platform: 10.9
steps:
- template: .azure-pipelines/mac_build_java.yml
- job: Ubuntu_18_04_x64_cartridge
timeoutInMinutes: 90
pool:
vmImage: ubuntu-18.04
variables:
boost_version: 1.69.0
number_of_cores: nproc
steps:
- template: .azure-pipelines/linux_build_cartridge.yml