Skip to content

Commit

Permalink
[FIXED] Removed the old link.
Browse files Browse the repository at this point in the history
  • Loading branch information
hossain-khan committed Aug 20, 2016
1 parent 8269ff2 commit 2616c25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Expand Up @@ -7,10 +7,7 @@ script:
# Get proper branch name based on http://graysonkoonce.com/getting-the-current-branch-name-during-a-pull-request-in-travis-ci/
- export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
# Now prepare the open API spec file to use the online validator service - http://online.swagger.io/validator/debug?url=
- export OPEN_API_SPEC_FILE=https://raw.githubusercontent.com/amardeshbd/medium-api-specification/feature/add_travis_ci_build/medium-api-specification.yaml
# Show in console what are the test values
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- echo "OpenAPI Specification File=$OPEN_API_SPEC_FILE"
# All variables ready - run the test script
- bash api-spec_validation_test.sh
1 change: 1 addition & 0 deletions api-spec_validation_test.sh
Expand Up @@ -33,6 +33,7 @@ testOpenApiSpecValidity() {
expectedOutput="{}"
expectedOutputSize=${#expectedOutput}
specUrl="$githubRawResourceBaseUrl/$githubUsername/$githubProjectId/$BRANCH/$openApiSpecFileName"
# Now prepare the open API spec file to use the online validator service.
validationUrl="http://online.swagger.io/validator/debug?url=$specUrl"

echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
Expand Down

0 comments on commit 2616c25

Please sign in to comment.