Merge branch release-2020 into master
[alexxy/gromacs.git] / admin / builds / gromacs.py
index cb9d78e3ba2a075d4cec5a6b9dbd512d681ca4ea..7dce328844b31afb28e15b8a6067a034f95f8b19 100644 (file)
@@ -1,7 +1,8 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2015,2016,2017,2018,2019,2020, by the GROMACS development team, led by
+# Copyright (c) 2015,2016,2017,2018,2019,2020, The GROMACS development team.
+# Copyright (c) 2020, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -244,6 +245,11 @@ def do_build(context):
         # TODO: Generalize the machinery here such that it can easily be used
         # also for non-release builds.
     else:
+        # run OpenCL offline compile tests on clang tidy builds
+        if (context.opts.tidy and context.opts.opencl):
+            context.build_target(target='ocl_nbnxm_kernels')
+            context.build_target(target='ocl_pme_kernels')
+
         context.build_target(target='tests', keep_going=True)
 
         context.run_ctest(args=['--output-on-failure', '--label-exclude', 'SlowTest'], memcheck=context.opts.asan)
@@ -251,10 +257,6 @@ def do_build(context):
         context.build_target(target='install')
         # TODO: Consider what could be tested about the installed binaries.
 
-        # run OpenCL offline compile tests on clang tidy builds
-        if (context.opts.tidy and context.opts.opencl):
-            context.build_target(target='ocl_nbnxm_kernels')
-
         if not context.opts.mdrun_only:
             context.env.prepend_path_env(os.path.join(context.workspace.build_dir, 'bin'))
             context.chdir(regressiontests_path)