mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
- only run for Core AIO (which combines the other x5) - TODO see if we can tweak further and not upload -tests.jar - see also ATS-468, ATS-718
21 lines
884 B
Bash
21 lines
884 B
Bash
#!/usr/bin/env bash
|
|
|
|
echo "=========================== Starting Static Analysis Script ==========================="
|
|
PS4="\[\e[35m\]+ \[\e[m\]"
|
|
set -vex
|
|
pushd "$(dirname "${BASH_SOURCE[0]}")/../"
|
|
|
|
# Run in a sandbox for every branch, run normally on master
|
|
[ "${TRAVIS_BRANCH}" != "master" ] && RUN_IN_SANDBOX="-sandboxname Transformers" || RUN_IN_SANDBOX=""
|
|
|
|
java -jar vosp-api-wrappers-java-$VERACODE_WRAPPER_VERSION.jar -vid $VERACODE_API_ID \
|
|
-vkey $VERACODE_API_KEY -action uploadandscan -appname "Transform Service" \
|
|
${RUN_IN_SANDBOX} -createprofile false \
|
|
-filepath \
|
|
alfresco-transform-core-aio/alfresco-transform-core-aio-boot/target/alfresco-transform-core-aio-boot*.jar \
|
|
-version "$TRAVIS_JOB_ID - $TRAVIS_JOB_NUMBER" -scantimeout 3600
|
|
|
|
popd
|
|
set +vex
|
|
echo "=========================== Finishing Static Analysis Script =========================="
|