-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for using access token when running UI test on CI (#99)
- Loading branch information
1 parent
6a047ae
commit 8063e27
Showing
8 changed files
with
82 additions
and
59 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ var codyRepo = "https://github.com/sourcegraph/cody.git"; | |
var nodeBinaryUrl = "https://github.com/sourcegraph/node-binaries/raw/main/v20.12.2/node-win-x64.exe"; | ||
var nodeArmBinaryUrl = "https://github.com/sourcegraph/node-binaries/raw/main/v20.12.2/node-win-arm64.exe"; | ||
|
||
var codyCommit = "9a7e712ffce1b90bf2627dd528a68a803b7959ee"; | ||
var codyCommit = "503154d7b220be0ebcfff5d58e6348293a98ff63"; // points to https://github.com/sourcegraph/cody/pull/5532 in the main branch | ||
|
||
var marketplaceToken = EnvironmentVariable("CODY_VS_MARKETPLACE_RELEASE_TOKEN"); | ||
|
||
|
@@ -79,14 +79,21 @@ Task("BuildCodyAgent") | |
|
||
if (!isDevMode) | ||
{ | ||
Information($"--> Checkout '{branchName}' ..."); | ||
GitCheckout(codyDir, branchName); | ||
|
||
if (DirectoryExists(codyDir)) | ||
{ | ||
Information($"--> Switching to branch {branchName} ..."); | ||
GitCheckout(codyDir, branchName); | ||
} | ||
|
||
//GitCheckout(codyDir, codyCommit); | ||
Information($"--> git pull ..."); | ||
GitPull(codyDir, "cake", "[email protected]", "", "", "origin"); | ||
|
||
Information($"--> Checkout '{branchName}' ..."); | ||
GitCheckout(codyDir, branchName); | ||
|
||
Information($"--> git pull ..."); | ||
GitPull(codyDir, "cake", "[email protected]"); | ||
Information($"--> Checkout '{branchName}' using commit {codyCommit} ..."); | ||
GitCheckout(codyDir, codyCommit); | ||
} | ||
|
||
Information($"--> Cleaning '{codyAgentDistDir}' ..."); | ||
|