Firebase_cli_path:缺少 firebase cli 工具的路径。请在 $PATH 中安装 firebase 或指定路径
Firebase_cli_path: missing path to firebase cli tool. Please install firebase in $PATH or specify path
特拉维斯 CI 投掷 firebase_cli_path。我不确定如何指定此路径。在Google文档中,提到这个路径会自动检测。
那么,我需要将 firebase 工具安装到 Travis CI,我该怎么做?
这是travis.yml
dist: trusty
branches:
only:
- master
before_install:
- gem install bundler
- bundle --version
- bundle install
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
# - tools
# - platform-tools
# The BuildTools version used by your project
- build-tools-28.0.3
# The SDK version used to compile your project
- android-28
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-x86-android-26
- sys-img-armeabi-v7a-android-17
script:
- bundle exec fastlane android uatrelease
after_success:
- firebase deploy --token $FIREBASE_TOKEN --non-interactive
这是fastfile
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end
desc "Submit a new Beta Build to Hockey App"
lane :beta do |options|
gradle(task: "clean assembleRelease")
firebase_app_distribution(
app: "1:***********************",
testers: "abc@gmail.com",
release_notes: "Configuring Fastlane",
firebase_cli_token:ENV["FIREBASE_TOKEN"]
)
end
end
我已经弄明白了,现在可以用了。刚刚包含了在 Travis 中安装独立 firebase 工具的脚本。
Check this 并添加这个
curl -sL firebase.tools | bash
在您的 travis.yml 文件中。
样本travis.yml
dist: trusty
branches:
only:
- master
before_install:
- gem install bundler
- bundle --version
- bundle install
before_script:
- curl -sL firebase.tools | bash
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
# - tools
# - platform-tools
# The BuildTools version used by your project
- build-tools-28.0.3
# The SDK version used to compile your project
- android-28
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-x86-android-26
- sys-img-armeabi-v7a-android-17
script:
- bundle exec fastlane “your action”
特拉维斯 CI 投掷 firebase_cli_path。我不确定如何指定此路径。在Google文档中,提到这个路径会自动检测。 那么,我需要将 firebase 工具安装到 Travis CI,我该怎么做?
这是travis.yml
dist: trusty
branches:
only:
- master
before_install:
- gem install bundler
- bundle --version
- bundle install
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
# - tools
# - platform-tools
# The BuildTools version used by your project
- build-tools-28.0.3
# The SDK version used to compile your project
- android-28
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-x86-android-26
- sys-img-armeabi-v7a-android-17
script:
- bundle exec fastlane android uatrelease
after_success:
- firebase deploy --token $FIREBASE_TOKEN --non-interactive
这是fastfile
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end
desc "Submit a new Beta Build to Hockey App"
lane :beta do |options|
gradle(task: "clean assembleRelease")
firebase_app_distribution(
app: "1:***********************",
testers: "abc@gmail.com",
release_notes: "Configuring Fastlane",
firebase_cli_token:ENV["FIREBASE_TOKEN"]
)
end
end
我已经弄明白了,现在可以用了。刚刚包含了在 Travis 中安装独立 firebase 工具的脚本。 Check this 并添加这个
curl -sL firebase.tools | bash
在您的 travis.yml 文件中。
样本travis.yml
dist: trusty
branches:
only:
- master
before_install:
- gem install bundler
- bundle --version
- bundle install
before_script:
- curl -sL firebase.tools | bash
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
# - tools
# - platform-tools
# The BuildTools version used by your project
- build-tools-28.0.3
# The SDK version used to compile your project
- android-28
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-x86-android-26
- sys-img-armeabi-v7a-android-17
script:
- bundle exec fastlane “your action”