Skip to content

Commit 1988469

Browse files
feat: add install_wap-xcode-uitests script (#98)
1 parent febff80 commit 1988469

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo " => Creating a temporary directory for codesigndoc ..."
5+
temp_dir="$(mktemp -d -t codesigndocXXXXXX)"
6+
codesigndoc_bin_path="${temp_dir}/codesigndoc"
7+
8+
version_to_use="2.2.0"
9+
if [ "$1" != "" ] ; then
10+
version_to_use="$1"
11+
fi
12+
if [ ! -z "${CODESIGNDOC_VERSION}" ] ; then
13+
version_to_use="${CODESIGNDOC_VERSION}"
14+
fi
15+
echo " => Downloading version: ${version_to_use}"
16+
17+
scan_command_to_use="xcodeuitests"
18+
19+
codesigndoc_download_url="https://github.com/bitrise-tools/codesigndoc/releases/download/${version_to_use}/codesigndoc-Darwin-x86_64"
20+
echo " => Downloading codesigndoc from (${codesigndoc_download_url}) to (${codesigndoc_bin_path}) ..."
21+
curl -fL --progress-bar --output "${codesigndoc_bin_path}" "$codesigndoc_download_url"
22+
echo " => Making it executable ..."
23+
chmod +x "${codesigndoc_bin_path}"
24+
echo " => codesigndoc version: $(${codesigndoc_bin_path} version)"
25+
echo " => Running codesigndoc scan ..."
26+
echo
27+
${codesigndoc_bin_path} scan ${scan_command_to_use}

0 commit comments

Comments
 (0)