Skip to content

Commit

Permalink
Fix issue with API documentation deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Mar 5, 2017
1 parent 74cb46f commit af3048f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
sudo: false
language: node_js
node_js:
- '6'
- '4'
- '0.12'
- '0.10'
- 0.10
- 0.12
- 4
- 6
- node
after_success: ./deploy.sh
env:
global:
Expand All @@ -15,6 +16,6 @@ env:
- DOCS_DIR: ../yeoman-generator-doc
- GH_OWNER: yeoman
- GH_PROJECT_NAME: generator
- DEPLOY_ON_NODE_VERSION: v6
- DEPLOY_ON_NODE_VERSION: 6
- secure: >-
Hv7gACQoYGtesz1NTJYRHjGCimEJEjj4bQP2iTpDUUbfAiYe/4QPemoyDEFjRxbu5m2uoYwMk0AQrW7DnQhNAhl7u24jYnRgQyd/2GOx3xZgjwnao27gsrTHss4IyXEaS2h3kRuIVSD+xibz/lwZm+erHOQ9VOwvCQkOKnILXW8=
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SHA=`git rev-parse --verify HEAD`

# Only build and deploy docs on a specific node version
if [[ $TRAVIS_NODE_VERSION != $DEPLOY_ON_NODE_VERSION ]]; then
echo "Current Node.js versions doesn’t match. Skipping generating and deploying the docs."
echo "Current Node.js versions doesn’t match ($TRAVIS_NODE_VERSION != $DEPLOY_ON_NODE_VERSION). Skipping generating and deploying the docs."
exit 0
fi

Expand Down

1 comment on commit af3048f

@mischah
Copy link
Member

@mischah mischah commented on af3048f Mar 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

Please sign in to comment.