Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

trigger:
- master

pool:
vmImage: ubuntu-latest

steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'

- task: BrowserStackConfig@0
inputs:
BrowserStackServiceEndPoint: 'BrowserStack Connection'
- script: |
npm install
npm run single
displayName: 'npm install and run on bs'

- task: BrowserStackResults@1
inputs:
browserstackProduct: 'automate'
2 changes: 1 addition & 1 deletion conf/local.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports.config = {
capabilities: [{
browserName: 'chrome',
name: 'local_test',
build: 'browserstack-build-1',
build: process.env.BROWSERSTACK_BUILD_NAME || 'browserstack-build-1',
'browserstack.local': true
}],

Expand Down
2 changes: 1 addition & 1 deletion conf/parallel.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports.config = {
maxInstances: 10,
commonCapabilities: {
name: 'parallel_test',
build: 'browserstack-build-1'
build: process.env.BROWSERSTACK_BUILD_NAME || 'browserstack-build-1'
},

capabilities: [{
Expand Down
7 changes: 5 additions & 2 deletions conf/single.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ exports.config = {
exclude: [],

capabilities: [{
browserName: 'Chrome',
os_version : "14",
device : "iPhone 12",
real_mobile : "true",
browserName : "iPhone",
name: 'single_test',
build: 'browserstack-build-1'
build: process.env.BROWSERSTACK_BUILD_NAME || 'browserstack-build-1'
}],

logLevel: 'warn',
Expand Down