next-checks: check cargo doc for all rf-a platforms

`cargo doc` is not a platform independent test in the case
of the rf-a repository..
For the rest of the crates, `cargo doc` should still be a platform
independent test.

 * Run `cargo doc` on rf-a for all platforms. Remove rf-a's
   `cargo doc` tests from the platform independent testing scripts
   and add it to the next-checks (static checks) scripts.

Change-Id: Ib605d674bff2490f84837a1c565dbd333fa5657b
Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
diff --git a/script/next-checks/next-checks-generic-tests.sh b/script/next-checks/next-checks-generic-tests.sh
index 85c1378..4774291 100755
--- a/script/next-checks/next-checks-generic-tests.sh
+++ b/script/next-checks/next-checks-generic-tests.sh
@@ -77,19 +77,21 @@
 
 # Run cargo doc
 
-echo "cargo doc --no-deps" >> "$LOG_TEST_FILENAME" 2>&1
+if [ "$REPO_NAME" != "trusted-firmware-a" ]; then
+  echo "cargo doc --no-deps" >> "$LOG_TEST_FILENAME" 2>&1
 
-RUSTDOCFLAGS="-D warnings" cargo doc --no-deps >> "$LOG_TEST_FILENAME" 2>&1
+  RUSTDOCFLAGS="-D warnings" cargo doc --no-deps >> "$LOG_TEST_FILENAME" 2>&1
 
-if [ "$?" != 0 ]; then
-  echo "cargo doc: FAILURE"
-  ((ERROR_COUNT++))
-else
-  echo "cargo doc: PASS"
+  if [ "$?" != 0 ]; then
+    echo "cargo doc: FAILURE"
+    ((ERROR_COUNT++))
+  else
+    echo "cargo doc: PASS"
+  fi
+
+  echo "-------------------------------------" >> "$LOG_TEST_FILENAME" 2>&1
 fi
 
-echo "-------------------------------------" >> "$LOG_TEST_FILENAME" 2>&1
-
 cd -
 if [ "$ERROR_COUNT" != 0 ]; then
   echo "Some cargo checks have failed."