Skip to content

Commit

Permalink
Merge branch 'master' into rix0rrr-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
iliapolo authored Nov 3, 2021
2 parents 794697c + 02d5372 commit fbe620f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/aws-cdk/test/integ/run-against-dist
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ if [[ ! -f $dist_root/build.json ]]; then
fi

export CANDIDATE_VERSION=$(node -p "require('${dist_root}/build.json').version")

# FRAMEWORK_VERSION is the version that will be 'npm install'ed by the tests
if [[ "${FRAMEWORK_VERSION}" = "" ]]; then
export FRAMEWORK_VERSION=${CANDIDATE_VERSION}
fi
export TEST_RUNNER=dist

serve_npm_packages
Expand Down
7 changes: 7 additions & 0 deletions packages/aws-cdk/test/integ/run-against-release
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ mkdir -p $npmws

# Install the CLI and put it on the PATH
(cd $npmws && npm install aws-cdk)

# FRAMEWORK_VERSION is the version that will be 'npm install'ed by the tests
if [[ "${FRAMEWORK_VERSION}" = "" ]]; then
cli_version=$(cd $npmws && node -p "require('aws-cdk/package.json').version")
export FRAMEWORK_VERSION=${cli_version}
fi

export PATH=$npmws/node_modules/.bin:$PATH
export TEST_RUNNER=release

Expand Down

0 comments on commit fbe620f

Please sign in to comment.