Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabling testspace #653

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
101 changes: 52 additions & 49 deletions .github/actions/deploy-testspace-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,59 +27,62 @@ runs:
using: "composite"
steps:
- run: |
base_url=https://testspace-client.s3.amazonaws.com
version=""
case `uname -s` in
Linux)
folder=$HOME/bin
mkdir -p $folder
arch=`uname -m`
if [ "$arch" != "x86_64" ]; then version="-${arch}${version}"; fi
curl -fsSL ${base_url}/testspace-linux${version}.tgz | tar -zxvf- -C $RUNNER_TEMP
cp -f -p -u $RUNNER_TEMP/testspace $folder
;;
Darwin)
folder=$HOME/bin
mkdir -p $folder
curl -fsSL ${base_url}/testspace-darwin${version}.tgz | tar -zxvf- -C $RUNNER_TEMP
rsync -t -u $RUNNER_TEMP/testspace $folder
;;
*) # Windows
folder=$LOCALAPPDATA\Programs\testspace
mkdir -p "$folder"
curl -OsSL ${base_url}/testspace-windows${version}.zip
unzip -q -o testspace-windows${version}.zip -d $RUNNER_TEMP
rm testspace-windows${version}.zip
cp -f -p -u $RUNNER_TEMP/testspace.exe "$folder"
;;
esac
echo "$folder" >> $GITHUB_PATH
# base_url=https://testspace-client.s3.amazonaws.com
# version=""
# case `uname -s` in
# Linux)
# folder=$HOME/bin
# mkdir -p $folder
# arch=`uname -m`
# if [ "$arch" != "x86_64" ]; then version="-${arch}${version}"; fi
# curl -fsSL ${base_url}/testspace-linux${version}.tgz | tar -zxvf- -C $RUNNER_TEMP
# cp -f -p -u $RUNNER_TEMP/testspace $folder
# ;;
# Darwin)
# folder=$HOME/bin
# mkdir -p $folder
# curl -fsSL ${base_url}/testspace-darwin${version}.tgz | tar -zxvf- -C $RUNNER_TEMP
# rsync -t -u $RUNNER_TEMP/testspace $folder
# ;;
# *) # Windows
# folder=$LOCALAPPDATA\Programs\testspace
# mkdir -p "$folder"
# curl -OsSL ${base_url}/testspace-windows${version}.zip
# unzip -q -o testspace-windows${version}.zip -d $RUNNER_TEMP
# rm testspace-windows${version}.zip
# cp -f -p -u $RUNNER_TEMP/testspace.exe "$folder"
# ;;
# esac
# echo "$folder" >> $GITHUB_PATH
echo "Testspace client installation disabled"
shell: bash
- run: |
if [ -e "${{ inputs.report-file }}" ]; then
python ./scripts/generate-testspace-report.py ${{ inputs.report-type }} "${{ inputs.report-file }}" testspace-report.xml
else
echo "Skipping testspace report generation as ${{ inputs.report-file }} does not exist"
fi
# if [ -e "${{ inputs.report-file }}" ]; then
# python ./scripts/generate-testspace-report.py ${{ inputs.report-type }} "${{ inputs.report-file }}" testspace-report.xml
# else
# echo "Skipping testspace report generation as ${{ inputs.report-file }} does not exist"
# fi
echo "Testspace report generation disabled"
shell: bash
env:
TESTSPACE_REPORT_GITHUB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- run: |
if [ -f "${{ inputs.report-file }}" ]; then
echo "Original report was:"
cat "${{ inputs.report-file }}"
elif [ -d "${{ inputs.report-file }}" ]; then
echo "Original report was a directory"
else
echo "Skipping testspace report generation as ${{ inputs.report-file }} does not exist"
fi
file=testspace-report.xml
if [ -f "$file" ]; then
echo "Uploading $file to testspace"
cat $file
testspace testspace-report.xml \
"${{ inputs.token }}@${{ inputs.repository }}.testspace.com/${{ inputs.project }}/${{ inputs.space }}"
else
echo "Skipping testspace upload as $file does not exist"
fi
# if [ -f "${{ inputs.report-file }}" ]; then
# echo "Original report was:"
# cat "${{ inputs.report-file }}"
# elif [ -d "${{ inputs.report-file }}" ]; then
# echo "Original report was a directory"
# else
# echo "Skipping testspace report generation as ${{ inputs.report-file }} does not exist"
# fi
# file=testspace-report.xml
# if [ -f "$file" ]; then
# echo "Uploading $file to testspace"
# cat $file
# testspace testspace-report.xml \
# "${{ inputs.token }}@${{ inputs.repository }}.testspace.com/${{ inputs.project }}/${{ inputs.space }}"
# else
# echo "Skipping testspace upload as $file does not exist"
# fi
echo "Testspace report upload disabled"
shell: bash
Loading