Move doc builds to Azure
MODIFY
.travis.yml
.travis.yml
@@ -58,101 +58,3 @@ jobs:
- pip install pytest-xdist
script:
- py.test -v -n 30 test
-
- - stage: Update assets
- name: Documentation
- os: linux
- if: branch = master AND type != pull_request AND !tag
- env:
- - GITHUB_TOKEN=$TRIAGER_BOT_TOKEN
- before_install:
- # install linuxbrew
- - sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
- - test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
- - echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
- install:
- - npm install
- before_script:
- # do git stuff
- - brew install hub
- - hub --version
- - git remote set-url origin https://triager:$TRIAGER_BOT_TOKEN@github.com/appium/appium
- - git checkout -b generate-docs-$TRAVIS_COMMIT
- 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 origin generate-docs-$TRAVIS_COMMIT;
- hub pull-request -b "appium:master" -h "appium:generate-docs-$TRAVIS_COMMIT" -m "Update auto-generated docs";
- fi
- - stage:
- name: Bundle
- # only want to run this on the main master branch
- if: branch = master AND type != pull_request
- os:
- - osx
- - osx_image: xcode9.4
- env:
- - NODE_ENV=production
- - CC=gcc
- - CXX=g++
- before_install:
- - gcc --version
- - brew upgrade carthage
- install:
- # Install prod dependencies
- - npm install
-
- # Install only the dev dependencies that we need
- - npm install --only=dev gulp
- - npm install --only=dev appium-gulp-plugins
-
- # get appium-xcuitest-driver fully built
- - pushd node_modules/appium-xcuitest-driver/WebDriverAgent
- # do not use build script because Travis _will_ have rate limits
- - carthage bootstrap --no-use-binaries
- - cp Cartfile.resolved Carthage
- - mkdir -p ./Resources/WebDriverAgent.bundle
- - popd
- before_script:
- # Build the assets
- - npm run build
-
- # Remove the dev depenedencies
- - npm prune
- script:
- - npm run zip
- - npm install --only=dev gulp
- - npm install --only=dev appium-gulp-plugins
- - npm run upload
-
- - stage: Update appium.io
- if: tag
- os: osx
- env:
- - HUB_VERBOSE=true
- - GITHUB_TOKEN=$TRIAGER_BOT_TOKEN
- before_script:
- - brew install hub
- - pip install mkdocs==0.16.3
-
- # Checkout appium.io repository
- - git clone https://triager:$TRIAGER_BOT_TOKEN@github.com/appium/appium.io.git --branch=gh-pages && cd appium.io/
- - git checkout -b docs-$TRAVIS_TAG
- - bundle install
- - npm install
-
- script:
- # Build the docs and make a PR to get them on appium.io
- - npm run build:docs
- - git commit -a -n -m 'Updated docs for latest Appium version'
- - git push origin docs-$TRAVIS_TAG
- - hub pull-request -b "appium:gh-pages" -h "appium:docs-$TRAVIS_TAG" -m "Update documentation for latest version" | exit 0 # The PR command works but always returns non-negative

ADD
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 "Update auto-generated docs"
+ fi
+ displayName: Generate Docs and Make PR
+ env:
+ GITHUB_TOKEN: $(GITHUB_TOKEN)
\ No newline at end of file

MODIFY
ci-jobs/templates/bundle-template.yml
ci-jobs/templates/bundle-template.yml
jobs:
- job: bundle_and_upload_appium_zip
pool:
- vmImage: 'macOS 10.13'
+ vmImage: 'macOS 10.14'
variables:
CC: gcc
CXX: g++

ADD
ci-jobs/update-appium-io.yml
+# parameters: # No params yet, but may add later
+jobs:
+ - job: update_appium_io
+ pool:
+ vmImage: 'macOS 10.14'
+ variables:
+ CC: gcc
+ CXX: g++
+ steps:
+ - task: NodeTool@0
+ inputs:
+ versionSpec: '12.x'
+ - script: |
+ brew install hub
+ pip install mkdocs==0.16.3
+ git clone https://triager:$GITHUB_TOKEN@github.com/appium/appium.io.git --branch=gh-pages
+ pushd appium.io
+ git remote add triager https://triager:$GITHUB_TOKEN@github.com/appium/appium.io
+ git checkout -b docs-$BUILD_SOURCEVERSION
+ bundle install
+ npm install
+ npm run build:docs
+ git commit -a -n -m 'Updated docs for latest Appium version'
+ git push triager docs-$BUILD_SOURCEVERSION
+ hub pull-request -b "appium:gh-pages" -h "appium:docs-$BUILD_SOURCEVERSION" -m "Update documentation for latest version"
+ displayName: Make branch with Updated Docs and make PR
+ env:
+ GITHUB_TOKEN: $(GITHUB_TOKEN)
\ No newline at end of file

Move doc builds to Azure (#12815)