Skip to content

Commit

Permalink
Update nodo-integrationTest-st.yaml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
sasorrentino committed Jul 15, 2022
1 parent 4a25042 commit 692e520
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .devops/nodo-integrationTest-st.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ parameters:

variables:
artifactName: TestSuite
artifactDownloadedPath: /agent/_work/nodo-dei-pagamenti



Expand Down Expand Up @@ -77,20 +78,23 @@ stages:
pool: $(deploy-pool-${{ parameters.env }})
steps:
- checkout: none
- script: |
sudo mkdir $(artifactDownloadedPath)
displayName: 'Create Folder to Download Pipeline Artifact'
- task: DownloadPipelineArtifact@2
inputs:
artifact: $(artifactName)
path: /agent/_work/1
path: $(artifactDownloadedPath)
source: current
- task: ExtractFiles@1
inputs:
archiveFilePatterns: /agent/_work/1/nodo-dei-pagamenti-NRT.zip
destinationFolder: '$(System.ArtifactsDirectory)/extracted'
archiveFilePatterns: $(artifactDownloadedPath)/nodo-dei-pagamenti-NRT.zip
destinationFolder: $(artifactDownloadedPath)/extracted
cleanDestinationFolder: true
overwriteExistingFiles: false
- script: |
echo $(System.ArtifactsDirectory)/extracted/oracle/instantclient_21_6
sudo sh -c "echo $(System.ArtifactsDirectory)/extracted/oracle/instantclient_21_6 > /etc/ld.so.conf.d/oracle-instantclient.conf"
echo $(artifactDownloadedPath)/extracted/oracle/instantclient_21_6
sudo sh -c "echo $(artifactDownloadedPath)/extracted/oracle/instantclient_21_6 > /etc/ld.so.conf.d/oracle-instantclient.conf"
sudo ldconfig
displayName: 'Linux ldconfig Command for Oracle Instant Client'
- script: |
Expand All @@ -107,17 +111,20 @@ stages:
which pip
sudo pip3 install behave
sudo pip3 install -U -r $(System.ArtifactsDirectory)/extracted/requirements.txt #Install Requirements
sudo pip3 install -U -r $(artifactDownloadedPath)/extracted/requirements.txt #Install Requirements
whereis behave
which behave
#behave --help #Run behave
behave --junit-directory=$(System.ArtifactsDirectory)/extracted/report --junit $(System.ArtifactsDirectory)/extracted/src/integ-test/bdd-test/features/NewMod3/flows/TestGenerazioneRicevute03/generazioneRicevute_flows_ko_PAnew.feature
behave --help #Run behave
#behave --junit-directory=$(artifactDownloadedPath)/extracted/report --junit $(artifactDownloadedPath)/extracted/src/integ-test/bdd-test/features/NewMod3/flows/TestGenerazioneRicevute03/generazioneRicevute_flows_ko_PAnew.feature
displayName: 'Install Python requirements'
#- task: PublishTestResults@2
#condition: succeededOrFailed()
#inputs:
#testResultsFiles: '$(System.ArtifactsDirectory)/extracted/report/*.xml'
#mergeTestResults: true
#testRunTitle: Integration test Nodo $(Build.BuildNumber)
#failTaskOnFailedTests: true
#failTaskOnFailedTests: true
- script: |
sudo rm -Rf $(artifactDownloadedPath)
displayName: 'Agent Pool CleanUP'

0 comments on commit 692e520

Please sign in to comment.