-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
25 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,34 @@ | ||
#! /usr/bin/env sh | ||
|
||
# Prepare directory | ||
mkdir -p /tmp/qa-windows | ||
cd /tmp/qa-windows | ||
|
||
# Add cargo to PATH | ||
$env:Path += [IO.Path]::PathSeparator + "$env:USERPROFILE/.cargo/bin" | ||
|
||
# Init app | ||
cargo shuttle init --name qa-windows --axum | ||
|
||
# # Start locally | ||
Start-Job -Name "local-run" -ScriptBlock { cargo shuttle run } | ||
Start-Sleep -Seconds 150 | ||
|
||
echo "Testing local hello endpoint" | ||
$output=curl http://localhost:8000/hello | Select-Object -ExpandProperty Content | ||
# [ "$output" != "Hello, world!" ] && ( echo "Did not expect output: $output"; exit 1 ) | ||
echo "Did not expect output: $output" | ||
|
||
# killall cargo-shuttle | ||
|
||
# cargo shuttle project start | ||
|
||
# cargo shuttle deploy --allow-dirty | ||
|
||
# echo "Testing remote hello endpoint" | ||
# output=$(curl --silent https://qa-windows.unstable.shuttleapp.rs/hello) | ||
# [ "$output" != "Hello, world!" ] && ( echo "Did not expect output: $output"; exit 1 ) | ||
|
||
# cargo shuttle project stop | ||
|
||
# exit 0 |