Skip to content

Commit

Permalink
Work on Travis build (#11885)
Browse files Browse the repository at this point in the history
  • Loading branch information
imurchie committed Dec 21, 2018
1 parent 23471c7 commit eaf00bc
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
- npm install
script:
- npm run generate-docs
- stage: Auto-generate documentation

- stage: Update assets
name: Documentation
os: osx
if: branch = master AND type != pull_request AND !tag
env:
Expand All @@ -46,15 +48,18 @@ jobs:
- 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';
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: BinTray Bundle Build and Upload
- stage:
name: BinTray Bundle
# only want to run this on the main master branch
if: branch = master AND type != pull_request
os:
Expand Down Expand Up @@ -90,7 +95,7 @@ jobs:
- npm prune
script: npm run zip-and-upload

- stage: Update Documentation
- stage: Update appium.io
if: tag
os: osx
env:
Expand Down

0 comments on commit eaf00bc

Please sign in to comment.