]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Add YAML file for CI builds
authorMichael D Kinney <michael.d.kinney@intel.com>
Mon, 28 Oct 2019 20:20:40 +0000 (13:20 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Mon, 11 Nov 2019 21:02:24 +0000 (13:02 -0800)
https://bugzilla.tianocore.org/show_bug.cgi?id=2315

Add YAML file to the package directory with the
configuration of the checks to perform during a
CI build.

Use BaseCryptLibNull and TlsLibNull for package CI
builds to reduce package build times.  Enabled with
CONTINUOUS_INTEGRATION in YAML files.  By default
CONTINUOUS_INTEGRATION is not defined, and the
original lib mappings are preserved.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
NetworkPkg/NetworkPkg.ci.yaml [new file with mode: 0644]
NetworkPkg/NetworkPkg.dsc

diff --git a/NetworkPkg/NetworkPkg.ci.yaml b/NetworkPkg/NetworkPkg.ci.yaml
new file mode 100644 (file)
index 0000000..70f2e10
--- /dev/null
@@ -0,0 +1,62 @@
+## @file\r
+# CI configuration for NetworkPkg\r
+#\r
+# Copyright (c) Microsoft Corporation\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+##\r
+{\r
+    "CompilerPlugin": {\r
+        "DscPath": "NetworkPkg.dsc"\r
+    },\r
+    "CharEncodingCheck": {\r
+        "IgnoreFiles": []\r
+    },\r
+    "DependencyCheck": {\r
+        "AcceptableDependencies": [\r
+            "MdePkg/MdePkg.dec",\r
+            "MdeModulePkg/MdeModulePkg.dec",\r
+            "NetworkPkg/NetworkPkg.dec",\r
+            "CryptoPkg/CryptoPkg.dec"\r
+        ],\r
+        # For host based unit tests\r
+        "AcceptableDependencies-HOST_APPLICATION":[],\r
+        # For UEFI shell based apps\r
+        "AcceptableDependencies-UEFI_APPLICATION":[\r
+            "ShellPkg/ShellPkg.dec"\r
+        ],\r
+        "IgnoreInf": []\r
+    },\r
+    "DscCompleteCheck": {\r
+        "DscPath": "NetworkPkg.dsc",\r
+        "IgnoreInf": []\r
+    },\r
+    "GuidCheck": {\r
+        "IgnoreGuidName": [],\r
+        "IgnoreGuidValue": [],\r
+        "IgnoreFoldersAndFiles": []\r
+    },\r
+    "LibraryClassCheck": {\r
+        "IgnoreHeaderFile": []\r
+    },\r
+\r
+    ## options defined ci/Plugin/SpellCheck\r
+    "SpellCheck": {\r
+        "AuditOnly": True,           # Fails test but run in AuditOnly mode to collect log\r
+        "IgnoreFiles": [],           # use gitignore syntax to ignore errors in matching files\r
+        "ExtendWords": [],           # words to extend to the dictionary for this package\r
+        "IgnoreStandardPaths": [],   # Standard Plugin defined paths that should be ignore\r
+        "AdditionalIncludePaths": [] # Additional paths to spell check (wildcards supported)\r
+    },\r
+\r
+    "Defines": {\r
+        "BLD_*_CONTINUOUS_INTEGRATION": "TRUE",\r
+        "BLD_*_NETWORK_ENABLE": "TRUE",\r
+        "BLD_*_NETWORK_SNP_ENABLE": "TRUE",\r
+        "BLD_*_NETWORK_VLAN_ENABLE": "TRUE",\r
+        "BLD_*_NETWORK_IP4_ENABLE": "TRUE",\r
+        "BLD_*_NETWORK_IP6_ENABLE": "TRUE",\r
+        "BLD_*_NETWORK_TLS_ENABLE": "TRUE",\r
+        "BLD_*_NETWORK_HTTP_BOOT_ENABLE": "TRUE",\r
+        "BLD_*_NETWORK_ISCSI_ENABLE": "TRUE",\r
+    }\r
+}\r
index 11a29812614f76736ba70268843f825d71e73a44..b149453d26f10e02d091d7863d86e33e70654472 100644 (file)
   DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
   SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf\r
 \r
+!ifdef CONTINUOUS_INTEGRATION\r
+  BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf\r
+  TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf\r
+!else\r
   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
   OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
   IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
   TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf\r
+!endif\r
   DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
   FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r
   FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf\r