Created
August 23, 2021 08:57
-
-
Save rakesh-vardan/209fbcd06ef8bf8c72afde68fc259c17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: v1.0 | |
| name: Complex Pipeline with multiple browsers - parallel with LambdaTest | |
| agent: | |
| machine: | |
| type: e1-standard-2 | |
| os_image: ubuntu1804 | |
| blocks: | |
| - name: Build | |
| dependencies: [] | |
| task: | |
| env_vars: | |
| - name: MAVEN_OPTS | |
| value: '-Dmaven.repo.local=.m2' | |
| jobs: | |
| - name: Build | |
| commands: | |
| - checkout | |
| - mvn -q package -DskipTests=true | |
| - cache store | |
| - name: API Smoke tests | |
| dependencies: | |
| - Build | |
| task: | |
| env_vars: | |
| - name: MAVEN_OPTS | |
| value: '-Dmaven.repo.local=.m2' | |
| prologue: | |
| commands: | |
| - checkout | |
| - cache restore | |
| jobs: | |
| - name: Run Smoke API tests | |
| commands: | |
| - mvn clean install -DsuiteXmlFile=testng-api.xml | |
| epilogue: | |
| always: | |
| commands: | |
| - test-results publish target/surefire-reports/junitreports/*.xml | |
| - name: Firefox tests | |
| dependencies: | |
| - API Smoke tests | |
| task: | |
| env_vars: | |
| - name: MAVEN_OPTS | |
| value: '-Dmaven.repo.local=.m2' | |
| prologue: | |
| commands: | |
| - checkout | |
| - cache restore | |
| jobs: | |
| - name: Run tests in Firefox | |
| commands: | |
| - mvn clean install -DsuiteXmlFile=testng.xml -Dbrowser=GRID_LAMBDATEST_FIREFOX | |
| epilogue: | |
| always: | |
| commands: | |
| - test-results publish target/surefire-reports/junitreports/*.xml | |
| secrets: | |
| - name: LT | |
| - name: Chrome tests | |
| dependencies: | |
| - API Smoke tests | |
| task: | |
| env_vars: | |
| - name: MAVEN_OPTS | |
| value: '-Dmaven.repo.local=.m2' | |
| prologue: | |
| commands: | |
| - checkout | |
| - cache restore | |
| jobs: | |
| - name: Run tests in Chrome | |
| commands: | |
| - mvn clean install -DsuiteXmlFile=testng.xml -Dbrowser=GRID_LAMBDATEST_CHROME | |
| epilogue: | |
| always: | |
| commands: | |
| - test-results publish target/surefire-reports/junitreports/*.xml | |
| secrets: | |
| - name: LT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment