Publish nightly Appium bundle (#12308)

This commit is contained in:
Dan Graham
2019-04-07 18:36:53 -07:00
committed by GitHub
parent 3d5ce43e58
commit a532aa4978
2 changed files with 41 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
jobs:
- template: templates/bundle-template.yml
+39
View File
@@ -0,0 +1,39 @@
# parameters: # No params yet, but may add later
jobs:
- job: bundle_and_upload_appium_zip
pool:
vmImage: 'macOS 10.13'
variables:
CC: gcc
CXX: g++
steps:
- script: gcc --version
displayName: Print GCC Version
- task: NodeTool@0
inputs:
versionSpec: '11.x'
- script: npm ci || npm install # "npm ci" if shrinkwrap is present
displayName: Install NPM Dependencies
- script: |
pushd node_modules/appium-xcuitest-driver/WebDriverAgent
carthage bootstrap --no-use-binaries
cp Cartfile.resolved Carthage
mkdir -p ./Resources/WebDriverAgent.bundle
popd
displayName: Fully build XCUITestDriver
- script: npm run build
displayName: npm run build
- script: npm prune --production
displayName: Get rid of dev dependencies
- script: npm run zip
displayName: Create the bundle zip
- script: npm install
displayName: Reinstall dev dependencies
- script: npm run upload
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
displayName: Upload to appium/appium-build-store Github Releases
- script: npx gulp sauce-storage-upload
displayName: Upload to Sauce Storage as sauce-storage:appium.zip
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)