44# https://aka.ms/yaml
55resources :
66 repositories :
7- - repository : IntegrationTests
8- type : git
9- name : launcher-automation/IntegrationTests
10- ref : azure-pipelines
11- trigger :
12- branches :
13- include :
14- - azure-pipelines
7+ - repository : launcher-automation
8+ type : github
9+ name : docusign/launcher-automation
10+ ref : main
11+ endpoint : launcherAutomationServiceConnection
1512
1613pr :
1714- master
@@ -21,10 +18,11 @@ pool:
2118 name : launcher-automation-pool
2219
2320steps :
24- - script : echo Hello, world!
25- displayName : ' Run a one-line script'
21+ - script : |
22+ sudo rm -rf $(Build.SourcesDirectory)/code-examples-php-private
23+ displayName : ' Remove Project Folder'
2624- checkout : self
27- - checkout : IntegrationTests
25+ - checkout : launcher-automation
2826
2927- script : dir $(Build.SourcesDirectory)
3028
4543- script : |
4644 echo "place config.properties"
4745 echo $(tests_config_properties.secureFilePath)
48- cp $(tests_config_properties.secureFilePath) IntegrationTests /src/main/resources/config.properties
46+ cp $(tests_config_properties.secureFilePath) launcher-automation /src/main/resources/config.properties
4947 displayName : ' place config.properties'
5048
5149- task : DownloadSecureFile@1
@@ -89,23 +87,36 @@ steps:
8987
9088- script : dir $(Build.SourcesDirectory)/code-examples-php-private
9189
90+ - script : |
91+ echo "kill and remove any running containers"
92+ docker rm -f $(docker ps -a -q)
93+ docker system prune -f
94+ displayName : ' cleanup docker env'
9295
9396- script : |
9497 cd code-examples-php-private
95- docker compose up -d
98+ docker compose up -d --build
9699 displayName : ' start php app'
97100
98101- script : |
99102 cd code-examples-php-private
100- docker exec -it --user www-data docusign-php-fpm composer install
101- displayName : ' Install dependencies'
103+ docker exec docusign-php-fpm composer install
104+ displayName : ' install dependencies'
102105
103106- script : |
104- cd IntegrationTests
107+ cd launcher-automation
105108 mvn clean test -DsuiteXmlFile="php_suite.xml"
106- displayName : ' Node app tests'
109+ displayName : ' php app tests'
107110
108111- script : |
109112 docker stop $(docker ps -a -q)
110113 docker rm $(docker ps -a -q)
111- displayName : ' stop node app'
114+ displayName : ' stop php app'
115+
116+ - script : |
117+ allure generate --clean --output $(Build.SourcesDirectory)/php-allure-output '$(Build.SourcesDirectory)/launcher-automation/target/allure-results'
118+ displayName : generate allure html reports
119+ - task : PublishAllureReport@1
120+ displayName : ' Publish Allure Report'
121+ inputs :
122+ reportDir : ' $(Build.SourcesDirectory)/php-allure-output'
0 commit comments