1+ # Starter pipeline
2+ # Start with a minimal pipeline that you can customize to build and deploy your code.
3+ # Add steps that build, run tests, deploy, and more:
4+ # https://aka.ms/yaml
5+ resources :
6+ 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
15+
16+ pr :
17+ - master
18+ - releases/*
19+
20+ pool :
21+ name : launcher-automation-pool
22+
23+ steps :
24+ - script : echo Hello, world!
25+ displayName : ' Run a one-line script'
26+ - checkout : self
27+ - checkout : IntegrationTests
28+
29+ - script : dir $(Build.SourcesDirectory)
30+
31+ - script : |
32+ allure –-version
33+ java --version
34+ javac --version
35+ mvn --version
36+ docker --version
37+
38+ - task : DownloadSecureFile@1
39+ name : tests_config_properties
40+ displayName : ' download config.properties'
41+ inputs :
42+ secureFile : ' java-php.config.properties'
43+
44+
45+ - script : |
46+ echo "place config.properties"
47+ echo $(tests_config_properties.secureFilePath)
48+ cp $(tests_config_properties.secureFilePath) IntegrationTests/src/main/resources/config.properties
49+ displayName : ' place config.properties'
50+
51+ - task : DownloadSecureFile@1
52+ name : php_ds_config
53+ displayName : ' download ds_config.php'
54+ inputs :
55+ secureFile : ' php.ds_config.php'
56+
57+
58+ - script : |
59+ echo "place ds_config.php"
60+ cp $(php_ds_config.secureFilePath) code-examples-php-private/ds_config.php
61+ displayName : ' place ds_config.php'
62+
63+
64+ - task : DownloadSecureFile@1
65+ name : php_private_key
66+ displayName : ' download private.key'
67+ inputs :
68+ secureFile : ' private.key'
69+
70+
71+ - script : |
72+ echo "place private.key"
73+ cp $(php_private_key.secureFilePath) code-examples-php-private/private.key
74+ displayName : ' place private.key'
75+
76+ - script : dir $(Build.SourcesDirectory)
77+
78+ - script : dir $(Build.SourcesDirectory)/code-examples-php-private
79+
80+
81+ - script : |
82+ cd code-examples-php-private
83+ docker compose up -d
84+ displayName : ' start php app'
85+
86+ - script : |
87+ cd IntegrationTests
88+ mvn clean test -DsuiteXmlFile="php_suite.xml"
89+ displayName : ' Node app tests'
90+
91+ - script : |
92+ docker stop $(docker ps -a -q)
93+ docker rm $(docker ps -a -q)
94+ displayName : ' stop node app'
0 commit comments