diff --git a/build_resources/ant/build-common.xml b/build_resources/ant/build-common.xml
index d0ba6b6798ce121fd1aec736e66da8ac02515f91..5ea34d76e4d77d40363ac0540b2952d4ba595533 100644
--- a/build_resources/ant/build-common.xml
+++ b/build_resources/ant/build-common.xml
@@ -109,10 +109,10 @@
     </target>
 
     <target name="ci">
-        <antcall target="check-restrictions" />
         <antcall target="run-tests">
             <param name="test.suite" value="tests.xml" />
         </antcall>
+        <antcall target="check-restrictions" />
     </target>
 
     <target name="check-restrictions" depends="compile, compile-tests">