Skip to content

Commit

Permalink
Merge pull request #107 from GEOS-ESM/feature/mathomp4/#106-circleci-604
Browse files Browse the repository at this point in the history
Fixes #106. Update CircleCI for MAPL 2.0
  • Loading branch information
sdrabenh authored Feb 18, 2020
2 parents 5534221 + 5b74ad3 commit 2c7af7b
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,32 @@ 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
- run:
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

0 comments on commit 2c7af7b

Please sign in to comment.