FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
x-platform-example/run.rb at master · extended-debug/x-platform-example · GitHub
extended-debug
/
x-platform-example
Public
forked from
calabash/x-platform-example
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
x-platform-example
/
run.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
22 lines (19 loc) · 643 Bytes
Breadcrumbs
x-platform-example
/
run.rb
Copy path
File metadata and controls
executable file
·
22 lines (19 loc) · 643 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env ruby
target
=
ARGV
.
shift
unless
system
(
"bundle version"
)
puts
"Can't find bundler. Check your ruby environment."
puts
"If your using ~/.calabash then run:"
puts
<<EOF
export GEM_HOME=~/.calabash
export GEM_PATH=~/.calabash
export PATH="$PATH:$HOME/.calabash/bin"
EOF
exit
(
false
)
end
if
target
==
'android'
exec
(
"export APP=prebuilt/Android-debug.apk && bundle exec calabash-android run $APP -p android
#{
ARGV
.
join
(
' '
)
}
"
)
elsif
target
==
'ios'
exec
(
"export APP=prebuilt/WordPress-cal.app && export APP_BUNDLE_PATH=$APP && bundle exec cucumber -p ios
#{
ARGV
.
join
(
' '
)
}
"
)
else
puts
"Invalid target
#{
target
}
"
end
Back
|
FazBrowse Home
|
New Git URL