Created
August 13, 2023 04:33
-
-
Save Alona-T/adf5d71bbfd369617a2d843e08ef4630 to your computer and use it in GitHub Desktop.
Pushing allure report to bitbucket page in bitbucket.yaml file
This file contains 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
pipelines: | |
custom: | |
run-tests: | |
- step: | |
name: Run api dev | |
image: ubuntu:22.04 | |
script: | |
- cd tests | |
- apt update | |
- apt remove -y nodejs | |
- apt install -y curl | |
- apt install -y wget | |
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash | |
- source ~/.bashrc | |
- nvm install v16.14.0 | |
- node -v | |
- apt install -y npm | |
- npm install | |
- npm run testDev | |
- npm run testDev || true | |
- apt install -y default-jre | |
- wget https://github.com/allure-framework/allure2/releases/download/2.18.1/allure_2.18.1-1_all.deb | |
- dpkg -i allure_2.18.1-1_all.deb | |
- allure --version | |
- cd test-reports | |
- allure generate allure-results --clean -o allure-report | |
- git init | |
- git config --global user.email "email" | |
- git config --global user.name "name" | |
- git add . | |
- git commit -m "Adding report" | |
- git remote add report https://name:api@bitbucket.org/gonetcoins/gonetcoins.bitbucket.io.git | |
- git push -u -f report master | |
artifacts: | |
- "**/test-reports/allure-report/**" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment