ci: update the base os version to make it work
DELETE
ci-jobs/generate-docs.yml
-# parameters: # No params yet, but may add later
-jobs:
- - job: generate_docs
- pool:
- vmImage: "macOS 10.14"
- variables:
- CC: gcc
- CXX: g++
- steps:
- - task: NodeTool@0
- inputs:
- versionSpec: '12.x'
- - script: |
- # do git stuff
- npm install
- brew install hub
- hub --version
- git remote add triager https://triager:$GITHUB_TOKEN@github.com/appium/appium
- git checkout -b generate-docs-$BUILD_SOURCEVERSION
- git status
- displayName: Checkout Generate Docs Branch
- env:
- GITHUB_TOKEN: $(GITHUB_TOKEN)
- - script: |
- # Generate the docs
- npm run generate-docs
- git add .
-
- # log the status so we know what is going on, on failure
- git status -s
-
- # If docs were generated, make a PR to update the docs
- if [[ -n $(git status -s) ]]; then
- git commit -a -n -m 'Update generated docs [ci skip]'
- git push triager generate-docs-$BUILD_SOURCEVERSION
- hub pull-request -b "appium:master" -h "appium:generate-docs-$BUILD_SOURCEVERSION" -m "docs: Update auto-generated docs"
- fi
- displayName: Generate Docs and Make PR
- env:
- GITHUB_TOKEN: $(GITHUB_TOKEN)

MODIFY
ci-jobs/templates/bundle-template.yml
ci-jobs/templates/bundle-template.yml
# parameters: # No params yet, but may add later
+
+parameters:
+ vmImage: 'macOS-latest'
+ bundleNodeJSVersion: '16.17.0'
+ nodeJSVersion: '16.x'
+
jobs:
- job: bundle_and_upload_appium_zip
pool:
- vmImage: 'macOS 10.14'
+ vmImage: ${{ parameters.vmImage }}
variables:
CC: gcc
CXX: g++
@@ -11,7 +17,7 @@ jobs:
displayName: Print GCC Version
- task: NodeTool@0
inputs:
- versionSpec: '12.x'
+ versionSpec: ${{ parameters.nodeJSVersion }}
- script: npm install
displayName: Install NPM Dependencies
- script: npm run build
@@ -19,13 +25,13 @@ jobs:
- script: npm prune --production
displayName: Get rid of dev dependencies
- script: |
- curl -o node-darwin.tar.gz https://nodejs.org/dist/v12.16.1/node-v12.16.1-darwin-x64.tar.gz
+ curl -o node-darwin.tar.gz https://nodejs.org/dist/v${{ parameters.bundleNodeJSVersion }}/node-v${{ parameters.bundleNodeJSVersion }}-darwin-x64.tar.gz
mkdir node-darwin-unpacked
tar -xzf node-darwin.tar.gz -C node-darwin-unpacked/ --strip-components 1
rm -f node-darwin.tar.gz
cp node-darwin-unpacked/bin/node node-darwin
rm -rf node-darwin-unpacked
- displayName: Download NodeJS
+ displayName: Download NodeJS to bundle it
- script: npm run zip
displayName: Create the bundle zip
- script: npm install

ci: update the base os version to make it work (#17424)