Skip to content

Commit

Permalink
Add testcloud step
Browse files Browse the repository at this point in the history
  • Loading branch information
vsafonkin committed Nov 5, 2019
1 parent fc10aa4 commit c650f41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CalSmokeApp/Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'

gem 'calabash-cucumber', :github => "calabash/calabash-ios", :branch => "develop"
gem "cucumber", "2.99.0"
gem "cucumber", "~>2.0"
gem "run_loop", :github => "calabash/run_loop", :branch => "develop"
gem "json", "1.8.6"

Expand Down
15 changes: 2 additions & 13 deletions CalSmokeApp/bin/appcenter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,10 @@ BUILD_RUN_LOOP: iff 1, then rebuild Calabash iOS gem before uploading.
exit 64
fi

CREDS=.appcenter-credentials
if [ ! -e "${CREDS}" ]; then
error "This script requires a ${CREDS} file"
error "Generating a template now:"
cat >${CREDS} <<EOF
export APPCENTER_TOKEN=
EOF
cat ${CREDS}
error "Update the file with your credentials and run again."
error "Bye."
exit 1
if [ "${APPCENTER_TOKEN}" = "" ]; then
APPCENTER_TOKEN=$("${HOME}/.calabash/find-keychain-credential.sh" api-token)
fi

source "${CREDS}"

# The uninstall/install dance is required to test changes in
# run-loop and calabash-cucumber in Test Cloud
if [ "${BUILD_RUN_LOOP}" = "1" ]; then
Expand Down
2 changes: 1 addition & 1 deletion CalSmokeApp/bin/make/ipa-cal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fi
cat >"${XTC_DIR}/Gemfile" <<EOF
source "https://rubygems.org"
gem "calabash-cucumber", "2.99.0"
gem "calabash-cucumber"
gem "json", "1.8.6"
EOF

Expand Down
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ jobs:
workingDirectory: 'CalSmokeApp'
displayName: "Make ipa-cal"

- script: SKIP_IPA_BUILD=1 bin/appcenter.sh App-Center-Test-Cloud/daily-ios
workingDirectory: 'CalSmokeApp'
displayName: "Appcenter tests"

- script: bundle exec bin/ci/cucumber.rb
displayName: "Cucumber tests"

Expand Down

0 comments on commit c650f41

Please sign in to comment.