-
Notifications
You must be signed in to change notification settings - Fork 1
/
step.sh
executable file
·57 lines (40 loc) · 1.13 KB
/
step.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Installing step dependencies"
# dependencies
if ! gem list -i "^down$"; then
echo "Installing gem: down"
gem install "down" --silent --conservative
else
echo "Found gem: down"
fi;
if ! gem list -i "^json$"; then
echo "Installing gem: json"
gem install "json" --silent --conservative
else
echo "Found gem: json"
fi;
if ! gem list -i "^plist$"; then
echo "Installing gem: plist"
gem install "plist" --silent --conservative
else
echo "Found gem: plist"
fi;
if ! gem list -i "^xcodeproj$"; then
echo "Installing gem: xcodeproj"
gem install "xcodeproj" --silent --conservative
else
echo "Found gem: xcodeproj"
fi;
if ! gem list -i "^rubyzip$"; then
echo "Installing gem: rubyzip"
gem install "rubyzip" --silent --conservative
else
echo "Found gem: rubyzip"
fi;
echo "Installed step dependencies"
echo "Checking Xcode version"
export APM_XCODE_VERSION=$(xcodebuild -version | grep 'Xcode\s[0-9.]*')
echo "Xcode version: ${APM_XCODE_VERSION}"
echo "Running Trace step"
ruby $THIS_SCRIPT_DIR/step.rb