Add preliminary circleci config

LT1AB
Ryan Burns 2020-05-02 12:31:15 -07:00
parent 882df30eb6
commit 2caaede24c
1 changed files with 49 additions and 0 deletions

View File

@ -1,5 +1,53 @@
version: 2.1 version: 2.1
jobs: 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: test:
docker: docker:
- image: hysds/pge-base:latest - image: hysds/pge-base:latest
@ -186,6 +234,7 @@ workflows:
test: test:
jobs: jobs:
- test - test
- test-cmake
build-deploy: build-deploy:
jobs: jobs:
- build: - build: