-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
55 lines (52 loc) · 1.92 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
pipelines:
custom:
default:
- variables:
- name: BROWSER
default: firefox
allowed-values:
- chrome
- chromium
- firefox
- msedge
- step:
name: Test
image: harmin/qa-runner-debian:latest
script:
- export PATH=$PATH:$HOME/.local/bin
- python3 -m venv ~/venv
- . ~/venv/bin/activate
- ./runner.sh --browser $BROWSER
- ./serenity.sh --browser $BROWSER
- CI_JOB_URL="https://bitbucket.org/${BITBUCKET_REPO_FULL_NAME}/pipelines/results/${BITBUCKET_BUILD_NUMBER}"
- echo $CI_JOB_URL > reporting/allure-results/java/job.url
- echo $CI_JOB_URL > reporting/allure-results/nodejs/job.url
- echo $CI_JOB_URL > reporting/allure-results/python/job.url
artifacts:
- reporting/**
- step:
name: Report
image: openjdk:8-jre
script:
- exit
- curl https://github.com/allure-framework/allure2/releases/download/${ALLURE}/allure-${ALLURE}.zip -L -o /tmp/allure.zip
- unzip /tmp/allure.zip -d /usr/local/
- ln -s /usr/local/allure-${ALLURE}/bin/allure /usr/local/bin/allure
- allure --version
- ./allure.sh --browser $BROWSER
artifacts:
- reporting
- step:
name: Commit
script:
- exit
- git config --global user.name "Bitbucket Pipeline"
- git config --global user.email "[email protected]"
- git clone https://x-token-auth:[email protected]/harmin-parra/reports.git
- cd reports
- git rm -r report-*
- mv ../reporting/report-* ./
- mv ../reporting/allure-reports/report-* ./
- git add *
- git commit -m "Bitbucket Pipeline"
- git push