Bundling script

This commit is contained in:
dpgraham
2019-03-14 14:03:17 -07:00
parent e608088390
commit 585da2a15d
+43 -19
View File
@@ -1,19 +1,43 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
jobs:
- job: bundle_and_upload_appium_zip
pool:
vmImage: 'Ubuntu-16.04'
variables:
NODE_ENV: production
CC: gcc
CXX: g++
steps:
- script: gcc --version
displayName: Print GCC Version
- script: brew upgrade carthage
displayName: Upgrade Carthage
- task: NodeTool@0
inputs:
versionSpec: '11.x'
- script: npm install (production only)
displayName: npm install
- script: |
npm install gulp
npm install appium-gulp-plugins
displayName: npm install gulp and appium-gulp-plugins
- 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
displayName: Prune Dev Dependencies
- script: npm run zip
displayName: npm run zip
- script: |
npm install gulp
npm install appium-gulp-plugins
displayName: npm install gulp and appium-gulp-plugins (again)
- script: npm run upload
displayName: Upload to appium/appium-build-store
- script: npx gulp sauce-storage-upload
displayName: Upload to Sauce Storage