-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add okta-angular as downstream of okta-auth-js (#102)
OKTA-468781 Install auth-js from upstream artifact
- Loading branch information
1 parent
5094aa2
commit cd43698
Showing
24 changed files
with
757 additions
and
652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# download okta-auth-js artifact version if empty and assign to upstream_artifact_version | ||
if [[ -z "${upstream_artifact_version}" ]]; then | ||
pushd ${OKTA_HOME}/okta-auth-js > /dev/null | ||
download_job_data global artifact_version upstream_artifact_version okta-auth-js ${upstream_artifact_sha} | ||
popd > /dev/null | ||
echo "okta-auth-js version that will be tested: ${upstream_artifact_version}" | ||
fi | ||
|
||
pushd ${OKTA_HOME}/okta-angular/scripts > /dev/null | ||
sdk_version_number="$(echo ${upstream_artifact_version} | cut -d'@' -f3)" | ||
echo "Update okta-auth-js version in scripts/setup.sh to ${sdk_version_number}" | ||
sed -i "s/\(AUTHJS_VERSION\=\).*/\1\"${sdk_version_number}\"/g" setup.sh | ||
echo "Update okta-auth-js version in scripts/setup-e2e.sh to ${sdk_version_number}" | ||
sed -i "s/\(AUTHJS_VERSION\=\).*/\1\"${sdk_version_number}\"/g" setup-e2e.sh | ||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.