Skip to content

Commit

Permalink
Updating Travis to enforce branch strategy (#2657)
Browse files Browse the repository at this point in the history
* Updating Travis to enforce branch strategy

* Fixing some typos

* One more shot

* Negating logic
  • Loading branch information
marstr authored Mar 14, 2018
1 parent 7fabfc9 commit f010d06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
- docker
env:
matrix:
- MODE=branchStrategy
- MODE=syntax
- MODE=python
- MODE=node
Expand Down Expand Up @@ -67,6 +68,10 @@ script:
if [[ $MODE == 'java' ]]; then
$DOCKER_CMD Azure/azure-libraries-for-java -v
fi
- >-
if [[ $MODE == 'branchStrategy' && $TRAVIS_PULL_REQUEST != 'false' && $TRAVIS_REPO_SLUG == 'Azure/azure-rest-api-specs-pr' && $TRAVIS_BRANCH == 'master' ]]; then
exit 1
fi
- >-
if [[ $MODE == 'syntax' ]]; then
npm test -- test/syntax.js
Expand Down

0 comments on commit f010d06

Please sign in to comment.