Issue-ID: SDC-4498
Signed-off-by: eschcam <cameron.scholes@est.tech>
Change-Id: I509ac34fd14b15cf968004b6254f749d87bc3d03
--- /dev/null
+#!/bin/bash
+
+py_files=$(find . -name '*.py' -not -path "*/node_modules/*" -not -path "*/target/*")
+
+if python3 -m py_compile ${py_files}
+then
+ echo "All python files compiled successfully"
+ exit 0
+else
+ echo "Failed to compile all files in Python 3"
+ exit 1
+fi
name: sdc
project-name: "sdc"
jobs:
+ - "{project-name}-{stream}-{area}-verify-shell":
+ # This is to ensure all script are Python 3 compatible
+ area: verify
+ build-timeout: 45
+ script: !include-raw-escape: "python3-verify.sh"
- "{project-name}-{stream}-verify-java":
# this build is unit test only (Verify 1/2)
mvn-params: "-P skip-integration-tests -Dnpm.registry=https://nexus3.onap.org/repository/npm.public/npm/-/"