code review comments

This commit is contained in:
Claudia Agache
2020-07-08 12:37:44 +03:00
parent 643fa96f1b
commit cc83d828d0
3 changed files with 14 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
import:
- source: travis-env-vars.yml
os: linux os: linux
dist: xenial dist: xenial
language: java language: java
@@ -11,12 +13,6 @@ branches:
- /merge-2.7\/.*/ - /merge-2.7\/.*/
- /hotfix-2.7\/.*/ - /hotfix-2.7\/.*/
env:
global:
- AUTOMATION_COMMUNITY_PATH=rm-automation/rm-automation-community-rest-api
- AUTOMATION_ENTERPRISE_PATH=rm-automation/rm-automation-enterprise-rest-api
- AUTOMATION_UI_PATH=rm-automation/rm-automation-ui
cache: cache:
directories: directories:
- $HOME/.m2 - $HOME/.m2
@@ -78,7 +74,11 @@ jobs:
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q - travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
- travis_wait 5 bash scripts/downloadInstaller.sh $AUTOMATION_COMMUNITY_PATH/target - travis_wait 5 bash scripts/downloadInstaller.sh $AUTOMATION_COMMUNITY_PATH/target
install: travis_wait 20 mvn install -Pinstall-alfresco,apply-rm-community -q -f $AUTOMATION_COMMUNITY_PATH/pom.xml install: travis_wait 20 mvn install -Pinstall-alfresco,apply-rm-community -q -f $AUTOMATION_COMMUNITY_PATH/pom.xml
script: travis_wait 90 mvn -B install -Prun-alfresco -Dskip.automationtests=false -f $AUTOMATION_COMMUNITY_PATH/pom.xml script:
- echo "Community Rest API Tests"
# Uncomment following line to start alfresco env using run-alfresco profile and run the tests.
# Currently commented because running tests is part of APPS-236 task
# travis_wait 90 mvn -B install -Prun-alfresco -Dskip.automationtests=false -f $AUTOMATION_COMMUNITY_PATH/pom.xml
- name: "Enterprise Rest API Tests" - name: "Enterprise Rest API Tests"
stage: Tests stage: Tests
before_install: before_install:

View File

@@ -3,16 +3,15 @@
set -ev set -ev
outputFile="$TRAVIS_BUILD_DIR/$1/alf-installer.bin" outputFile="$TRAVIS_BUILD_DIR/$1/alf-installer.bin"
amzFile="/eu.dl.alfresco.com/release/enterprise/5.2/5.2.7/5.2.7.4/alfresco-content-services-installer-5.2.7.4-linux-x64.bin"
host="s3-eu-west-1.amazonaws.com" host="s3-eu-west-1.amazonaws.com"
contentType="binary/octet-stream" contentType="binary/octet-stream"
dateValue=`TZ=GMT date -R` dateValue=`TZ=GMT date -R`
stringToSign="GET\n\n${contentType}\n${dateValue}\n${amzFile}" stringToSign="GET\n\n${contentType}\n${dateValue}\n$S3_INSTALLER_PATH"
signature=`echo -en ${stringToSign} | openssl sha1 -hmac $RELEASE_AWS_SECRET_KEY -binary | base64` signature=`echo -en ${stringToSign} | openssl sha1 -hmac $RELEASE_AWS_SECRET_KEY -binary | base64`
curl -H "Host: ${host}" \ curl -H "Host: ${host}" \
-H "Date: ${dateValue}" \ -H "Date: ${dateValue}" \
-H "Content-Type: ${contentType}" \ -H "Content-Type: ${contentType}" \
-H "Authorization: AWS $RELEASE_AWS_ACCESS_KEY:${signature}" \ -H "Authorization: AWS $RELEASE_AWS_ACCESS_KEY:${signature}" \
https://${host}${amzFile} -o ${outputFile} https://${host}${S3_INSTALLER_PATH} -o ${outputFile}
ls "$TRAVIS_BUILD_DIR/$1" ls "$TRAVIS_BUILD_DIR/$1"

5
travis-env-vars.yml Normal file
View File

@@ -0,0 +1,5 @@
env:
global:
- AUTOMATION_COMMUNITY_PATH=rm-automation/rm-automation-community-rest-api
- AUTOMATION_ENTERPRISE_PATH=rm-automation/rm-automation-enterprise-rest-api
- AUTOMATION_UI_PATH=rm-automation/rm-automation-ui