Cleanup Fastfile and move commnds to .travis.yml
This commit is contained in:
parent
ff8e03540a
commit
f28472842a
3 changed files with 16 additions and 67 deletions
|
|
@ -1,8 +1,13 @@
|
||||||
language: objective-c
|
language: objective-c
|
||||||
|
osx_image: xcode9.4
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- develop
|
- develop
|
||||||
before_install:
|
before_install:
|
||||||
- echo -e "machine github.com\n login $GITHUB_ACCESS_TOKEN" >> ~/.netrc
|
- echo -e "machine github.com\n login $GITHUB_ACCESS_TOKEN" >> ~/.netrc
|
||||||
|
install:
|
||||||
|
- gem update fastlane
|
||||||
|
- gem install xcodeproj
|
||||||
script:
|
script:
|
||||||
- ./fastlane/travis.sh
|
- fastlane test
|
||||||
|
- if [ "$TRAVIS_EVENT_TYPE" = "push" ]; then fastlane beta; fi
|
||||||
|
|
|
||||||
|
|
@ -1,38 +1,14 @@
|
||||||
# Customise this file, documentation can be found here:
|
|
||||||
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
|
|
||||||
# All available actions: https://docs.fastlane.tools/actions
|
|
||||||
# can also be listed using the `fastlane actions` command
|
|
||||||
|
|
||||||
# Change the syntax highlighting to Ruby
|
|
||||||
# All lines starting with a # are ignored when running `fastlane`
|
|
||||||
|
|
||||||
# If you want to automatically update fastlane if a new version is available:
|
|
||||||
update_fastlane
|
|
||||||
|
|
||||||
# This is the minimum version number required.
|
|
||||||
# Update this, if you use features of a newer version
|
|
||||||
fastlane_version "2.17.0"
|
|
||||||
|
|
||||||
default_platform :ios
|
default_platform :ios
|
||||||
|
|
||||||
platform :ios do
|
platform :ios do
|
||||||
before_all do
|
before_all do
|
||||||
cocoapods
|
cocoapods(repo_update: true)
|
||||||
carthage(platform: "iOS", verbose: true)
|
carthage(platform: "iOS", verbose: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Travis"
|
|
||||||
lane :travis do
|
|
||||||
test
|
|
||||||
beta
|
|
||||||
end
|
|
||||||
|
|
||||||
desc "Runs all the tests"
|
desc "Runs all the tests"
|
||||||
lane :test do
|
lane :test do
|
||||||
scan(
|
run_tests(scheme: "passTests")
|
||||||
scheme: "pass",
|
|
||||||
device: "iPhone 7"
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Submit a new Beta Build to Apple TestFlight"
|
desc "Submit a new Beta Build to Apple TestFlight"
|
||||||
|
|
@ -60,15 +36,17 @@ platform :ios do
|
||||||
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
||||||
readonly: true
|
readonly: true
|
||||||
)
|
)
|
||||||
# ensure_git_status_clean
|
|
||||||
increment_build_number(
|
increment_build_number(
|
||||||
build_number: latest_testflight_build_number(version: get_version_number(target: "pass"), initial_build_number: 0) + 1,
|
build_number: latest_testflight_build_number(version: get_version_number(target: "pass"), initial_build_number: 0) + 1,
|
||||||
xcodeproj: "pass.xcodeproj"
|
xcodeproj: "pass.xcodeproj"
|
||||||
)
|
)
|
||||||
# commit_version_bump(xcodeproj: "pass.xcodeproj")
|
gym(
|
||||||
# push_to_git_remote
|
scheme: "pass",
|
||||||
gym(scheme: "pass")
|
verbose: true
|
||||||
pilot(skip_waiting_for_build_processing: true)
|
)
|
||||||
|
pilot(
|
||||||
|
skip_waiting_for_build_processing: true
|
||||||
|
)
|
||||||
mailgun(
|
mailgun(
|
||||||
postmaster: ENV["MY_POSTMASTER"],
|
postmaster: ENV["MY_POSTMASTER"],
|
||||||
apikey: ENV["MY_API_KEY"],
|
apikey: ENV["MY_API_KEY"],
|
||||||
|
|
@ -82,28 +60,4 @@ platform :ios do
|
||||||
message: "A new build has been uploaded by Travis CI.",
|
message: "A new build has been uploaded by Travis CI.",
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Deploy a new version to the App Store"
|
|
||||||
lane :release do
|
|
||||||
# match(type: "appstore")
|
|
||||||
# snapshot
|
|
||||||
gym(scheme: "pass") # Build your app - more options available
|
|
||||||
deliver(force: true)
|
|
||||||
# frameit
|
|
||||||
end
|
|
||||||
|
|
||||||
# You can define as many lanes as you want
|
|
||||||
|
|
||||||
after_all do |lane|
|
|
||||||
end
|
|
||||||
|
|
||||||
error do |lane, exception|
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
|
|
||||||
# All available actions: https://docs.fastlane.tools/actions
|
|
||||||
|
|
||||||
# fastlane reports which actions are used
|
|
||||||
# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
gem update fastlane
|
|
||||||
gem install xcodeproj
|
|
||||||
if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then
|
|
||||||
fastlane test;
|
|
||||||
else
|
|
||||||
fastlane travis;
|
|
||||||
fi
|
|
||||||
exit $?
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue