-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
60 lines (50 loc) · 1.9 KB
/
azure-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
56
57
58
59
60
trigger:
- none
pool:
vmImage: 'ubuntu-22.04'
steps:
- pwsh: |
Write-Host "Setting up the date time for build variable"
$date=$(Get-Date -format yyyyMMdd-H:mm:ss)
Write-Host "##vso[task.setvariable variable=currentTimeStamp]$date"
displayName: 'Getting timestamp'
- script: |
sudo apt-get update
sudo apt-get install -y zip
sudo apt-get install -y wget
sudo apt-get install -y ca-certificates
sudo apt-get install -y libnss3-dev libasound2 libxss1 libappindicator3-1 gconf-service
sudo apt-get install -y libgconf-2-4 libpango1.0-0 xdg-utils fonts-liberation libgbm1 libu2f-udev
displayName: 'Install Debian packages'
continueOnError: true
- script: |
ruby -v
sudo gem install bundler
sudo bundle install
sudo cucumber --version
displayName: 'Bundle install'
continueOnError: true
- script: |
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
sudo rm google-chrome*.deb
displayName: 'Install Chrome Browser'
continueOnError: true
- script: |
sudo version=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE")
sudo wget -N https://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip
sudo unzip chromedriver_linux64.zip
sudo chmod +x chromedriver
sudo cp chromedriver /usr/local/bin
sudo rm chromedriver_linux64.zip
sudo rm chromedriver
sudo chromedriver -v
displayName: 'Install Chromedriver'
continueOnError: true
- script: |
cucumber -f pretty -f html -o $(System.DefaultWorkingDirectory)/reports/report-$(currentTimeStamp).html
displayName: 'E2E Testing'
continueOnError: true
- publish: $(System.DefaultWorkingDirectory)/reports/report-$(currentTimeStamp).html
artifact: Report
displayName: 'Artifacts'