diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..ee12ff7f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: FMScoupler build test + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + container: + image: underwoo/ubuntu_libfms_gnu + env: + CC: mpicc + FC: mpif90 + CPPFLAGS: '-I/usr/include -Duse_LARGEFILE -DMAXFIELDMETHODS_=500' + FCFLAGS: '-fcray-pointer -fdefault-double-8 -fdefault-real-8 -Waliasing -ffree-line-length-none -fno-range-check' + LDFLAGS: '-L/usr/lib' + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Run build test + run: t/null_model_build.sh diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..c186dc1e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,12 @@ +name: FMScoupler linter + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Run linter + uses: NOAA-GFDL/simple_lint@v2 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b1604882..00000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This Travis CI file is for testing the build and functionality -# of the libFMScoupler library, and model executable. -# -# This Travis CI file is based off the NOAA-GFDL/FMS Travis CI -# file. - -# The FMS coupler is not a c-language project, but this is the -# best choice under Travis CI. -language: c -dist: xenial -sudo: false - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - pkg-config netcdf-bin libnetcdf-dev libnetcdff-dev openmpi-bin libopenmpi-dev gfortran - -before_install: - - test -n "$CC" && unset CC - -before_script: - - export CC=mpicc - - export FC=mpif90 - - export CPPFLAGS='-I/usr/include -Duse_LARGEFILE -DMAXFIELDMETHODS_=500' - - export FCFLAGS='-fcray-pointer -fdefault-double-8 -fdefault-real-8 -Waliasing -ffree-line-length-none -fno-range-check' - - export LDFLAGS='-L/usr/lib' - -script: - - t/null_model_build.sh