From 2caaede24c732c4016880fa43b04c4efeb73ba16 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Sat, 2 May 2020 12:31:15 -0700 Subject: [PATCH] Add preliminary circleci config --- .circleci/config.yml | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 25ba14b..dab0512 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,5 +1,53 @@ version: 2.1 jobs: + test-cmake: + docker: + - image: hysds/pge-base:latest + user: root + steps: + - checkout: + path: /root/project/src + + - run: + name: Install development tools + command: | + set -ex + pwd + yum update -y + yum groupinstall -y "development tools" + + - run: + name: Install ISCE requirements + command: | + set -ex + pwd + mkdir config build install + . /opt/conda/bin/activate root + conda install -y cython gdal h5py libgdal pytest numpy fftw scipy basemap scons opencv hdf4 hdf5 netcdf4 libgcc libstdcxx-ng cmake astropy + yum install -y x11-devel motif-devel jq gcc-gfortran + + - run: + name: Build and Install ISCE + command: | + set -ex + cd /root/project/src + . /opt/conda/bin/activate root + mkdir build + cd build + cmake .. + make install + + - run: + name: Test ISCE installation + command: | + set -ex + pwd + . /opt/conda/bin/activate root + ctest + topsApp.py --help --steps + stripmapApp.py --help --steps + python3 -c "import isce" + test: docker: - image: hysds/pge-base:latest @@ -186,6 +234,7 @@ workflows: test: jobs: - test + - test-cmake build-deploy: jobs: - build: