Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions ROLLING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

## Pre-requisites

* install .NET SDK 8 with installer: https://dotnet.microsoft.com/download/dotnet/8.0
* install necessary build tools:
```bash
./build.sh --init
# restart terminal after that
```
Install .NET SDK 8 with installer: https://dotnet.microsoft.com/download/dotnet/8.0

## Rolling

Expand Down
16 changes: 1 addition & 15 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ cd "$(dirname "$0")"
if [[ ($1 == '--help') || ($1 == '-h') ]]; then
echo "usage: build.sh <command>"
echo "commands:"
echo " --init - download .NET deps and download driver"
echo " --roll <version> - roll the .NET language binding to a specific driver version"
echo " --download-driver - download the driver"
echo " --update-assets - sync the assets from 'playwright' to 'playwright-dotnet'"
echo " --help - show this help"
echo
exit 0
Expand All @@ -35,14 +33,6 @@ function download_driver() {
echo "done"
}

function update_assets() {
echo "updating assets..."
dotnet_assets_path="./src/Playwright.Tests.TestServer/assets"
rm -rf "$dotnet_assets_path"
cp -r "${upstream_repo_path}/tests/assets" "${dotnet_assets_path}"
echo "done"
}

function roll_driver() {
new_driver_version="$1"
upstream_package_version=$(node -e "console.log(require('${upstream_repo_path}/package.json').version)")
Expand All @@ -68,14 +58,10 @@ function roll_driver() {
}

CMD="$1"
if [[ ("$CMD" == "--init") ]]; then
download_driver
elif [[ ("$CMD" == "--roll") ]]; then
if [[ ("$CMD" == "--roll") ]]; then
roll_driver $2
elif [[ ("$CMD" == "--download-driver") ]]; then
download_driver
elif [[ ("$CMD" == "--update-assets") ]]; then
update_assets
else
echo "ERROR: unknown command - $CMD"
echo "Pass --help for supported commands"
Expand Down
Loading