From 5b74ad3368ba3110fb8977ab5af5aee42230ba62 Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Thu, 13 Feb 2020 15:33:06 -0500 Subject: [PATCH] Fixes #106. Update CircleCI for MAPL 2.0 * Uses gcc 9.1.1, Open MPI 4.0.2, and Baselibs 6.0.4 * Uses `mepo` to clone * Adds a weird linker flag to avoid a build issue --- .circleci/config.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4229ab0c..35d266d3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2 jobs: build: docker: - - image: gmao/geos-build-env:6.0.2 + - image: gmao/geos-build-env:6.0.4 working_directory: /root/project steps: - checkout @@ -10,13 +10,24 @@ jobs: name: "Versions etc" command: mpirun --version && gfortran --version && echo $BASEDIR && pwd && ls - run: - name: "Checkout external repos" + name: "Mepo clone external repos" command: | - checkout_externals -e Develop.cfg + mepo init + mepo clone + mepo develop GEOSgcm_App GEOSgcm_GridComp + mepo status - run: - name: "Build" + name: "Fix linker flags" + command: | + sed -i -e '$aset(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--unresolved-symbols=ignore-all")' ./@cmake/GNU.cmake + - run: + name: "CMake" command: | mkdir build cd build cmake .. -DBASEDIR=$BASEDIR/Linux -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_BUILD_TYPE=Debug + - run: + name: "Build" + command: | + cd build make -j2 install