Skip to content

Commit

Permalink
Added caching of FMS library
Browse files Browse the repository at this point in the history
  • Loading branch information
adcroft committed Apr 16, 2017
1 parent cdf6a43 commit f62bc2a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,24 @@ before_install:
# Install tools and dependencies
install:
- git clone https://github.com/adcroft/house_cleaning.git
- git clone https://github.com/NOAA-GFDL/MOM6-examples.git
- test -d MOM6-examples || git clone https://github.com/NOAA-GFDL/MOM6-examples.git
- (cd MOM6-examples/ ; git checkout dev/master ; git pull)
- (cd MOM6-examples/src/ && git submodule init mkmf FMS && git submodule update mkmf FMS)

# Tests to run
script:
- ./house_cleaning/trailer.py -e TEOS10 src config_src
- test -f my_cache/FMS-src.tgz && tar zxf my_cache/FMS-src.tgz || echo "No cache of FMS src"
- (cd MOM6-examples/src/ && git submodule update FMS)
&& tar zcf my_cache/FMS-src.tgz MOM6-examples/src/FMS
- test -f my_cache/FMS-obj.tgz && (tar zxf my_cache/FMS-obj.tgz) || echo "No cache of FMS objects"
- echo "Building FMS library"
&& mkdir -p build/FMS && (cd build/FMS
&& ../../MOM6-examples/src/mkmf/bin/list_paths ../../MOM6-examples/src/FMS/{platform,include,memutils,constants,mpp,fms,time_manager,diag_manager,data_override,coupler/ensemble_manager.F90,axis_utils,horiz_interp,time_interp,astronomy,mosaic}
&& rm -f path_names
&& ../../MOM6-examples/src/mkmf/bin/list_paths ../../MOM6-examples/src/FMS/{platform,include,memutils,constants,mpp,fms,time_manager,diag_manager,data_override,coupler/ensemble_manager.F90,axis_utils,horiz_interp,time_interp,astronomy,mosaic}
&& ../../MOM6-examples/src/mkmf/bin/mkmf -t ../../MOM6-examples/src/mkmf/templates/linux-gnu.mk -p libfms.a -c '-Duse_libMPI -Duse_netCDF -DSPMD -DUSE_LOG_DIAG_FIELD_INFO -DSTATSLABEL=\"gnu\" -DMAXFIELDMETHODS_=500 -Duse_AM3_physics' path_names
&& make FC=mpif90 CC=mpicc NETCDF=3 REPRO=1 libfms.a)
&& tar zcf my_cache/FMS-obj.tgz build/FMS

# Tests to run
script:
- ./house_cleaning/trailer.py -e TEOS10 src config_src
- echo "Compiling MOM6"
&& mkdir -p build/ocn && (cd build/ocn
&& ../../MOM6-examples/src/mkmf/bin/list_paths ../../{config_src/dynamic,config_src/solo_driver,src/{*,*/*}}/
Expand Down

0 comments on commit f62bc2a

Please sign in to comment.