Skip to content

Commit

Permalink
bump (#1766)
Browse files Browse the repository at this point in the history
  • Loading branch information
olydis authored Sep 28, 2017
1 parent 2f443f6 commit 52fe0e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ before_install:
- sudo apt-get install libunwind8 libicu52 -y
install:
- npm install
- npm install -g autorest@1.2.2
- autorest --version=latest
- autorest --help
script:
- DOCKER_CMD="docker run --rm --env-file /tmp/env_file -e GH_TOKEN -v $PWD:/git-restapi/ lmazuel/swagger-to-sdk"
- if [[ $MODE == 'python' ]]; then $DOCKER_CMD AutorestCI/azure-sdk-for-python --pr-repo-id Azure/azure-sdk-for-python -o master -v; fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/momentOfTruth.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let configsToProcess = utils.getConfigFilesChangedInPR();
let targetBranch = utils.getTargetBranch();
let sourceBranch = utils.getSourceBranch();
let pullRequestNumber = utils.getPullRequestNumber();
let linterCmd = `autorest --validation --azure-validator --message-format=json `;
let linterCmd = `npx autorest@latest --validation --azure-validator --message-format=json `;
let gitCheckoutCmd = `git checkout ${targetBranch}`;
let gitLogCmd = `git log -3`;
var filename = `${pullRequestNumber}_${utils.getTimeStamp()}.json`;
Expand Down
2 changes: 1 addition & 1 deletion test/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function getTagsFromConfig(config) {
}

function execLinterCommand(args) {
var cmd = `autorest --validation --azure-validator --message-format=json ${args}`.trim();
var cmd = `npx autorest@latest --validation --azure-validator --message-format=json ${args}`.trim();
console.log(`Executing: ${cmd}`);
try {
let result = execSync(cmd, { encoding: 'utf8', maxBuffer: 1024 * 1024 * 64 });
Expand Down

0 comments on commit 52fe0e9

Please sign in to comment.