From 196dcdb3a8a01cff2319ab7d30f00d7ce2eebf5c Mon Sep 17 00:00:00 2001
From: Bensong Liu <bensl@microsoft.com>
Date: Tue, 28 Jul 2020 13:45:17 +0800
Subject: [PATCH] skip ICPC test if icpc is not working

---
 buildspec.yaml | 2 +-
 test/test.sh   | 8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/buildspec.yaml b/buildspec.yaml
index a138100..415610b 100644
--- a/buildspec.yaml
+++ b/buildspec.yaml
@@ -9,7 +9,7 @@ phases:
     commands:
       - g++ --version
       - clang++ --version
-      - icpc --version
+      # - icpc --version # Intel CC on build machine expired...
   build:
     commands:
       - make
diff --git a/test/test.sh b/test/test.sh
index b3f664a..3c15f74 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -1,6 +1,12 @@
 #!/bin/bash
 
-for cxx in g++ clang++ icpc
+if icpc --version; then
+    compilers=(g++ clang++ icpc)
+else
+    compilers=(g++ clang++)
+fi
+
+for cxx in $compilers
 do
     for std in 14 17
     do
-- 
GitLab