Travis CI, unable to run tests - Error: activesupport requires Ruby version >= 2.2.2
Travis CI, unable to run tests - Error: activesupport requires Ruby version >= 2.2.2
我有一个开源 Obj-C
repository,Kiwi
单元测试框架作为 CocoaPods
依赖项。
为了 运行 测试,我使用了 Travis CI
持续集成工具。
之前一切都很好,所有单元测试都已执行,但现在我遇到了 Travis CI 构建错误:
ERROR: Error installing cocoapods:
activesupport requires Ruby version >= 2.2.2.
这是我的 .travis.yml
文件:
language: objective-c
before_install:
- sw_vers
- cd EKAlgorithmsApp
install: make install
script: make ci
这是我的 Makefile
:
install:
gem install cocoapods --no-ri --no-rdoc
gem install xcpretty --no-ri --no-rdoc
pod install
ci:
xcodebuild -workspace EKAlgorithmsApp.xcworkspace/ -scheme EKAlgorithmsSpecs -sdk macosx -configuration Release clean test | xcpretty -c
Travis CI 方面的配置似乎发生了一些变化,但我对 Ruby 不是很熟悉,因此我需要有关如何修复该警告的帮助 运行 我的测试成功了。
通过在我的 .travis.yml
文件中添加下一行解决了这个问题:
osx_image: xcode7.3
所以我的 .yml
文件现在看起来像:
language: objective-c
osx_image: xcode7.3
before_install:
- sw_vers
- cd EKAlgorithmsApp
install: make install
script: make ci
我有一个开源 Obj-C
repository,Kiwi
单元测试框架作为 CocoaPods
依赖项。
为了 运行 测试,我使用了 Travis CI
持续集成工具。
之前一切都很好,所有单元测试都已执行,但现在我遇到了 Travis CI 构建错误:
ERROR: Error installing cocoapods:
activesupport requires Ruby version >= 2.2.2.
这是我的 .travis.yml
文件:
language: objective-c
before_install:
- sw_vers
- cd EKAlgorithmsApp
install: make install
script: make ci
这是我的 Makefile
:
install:
gem install cocoapods --no-ri --no-rdoc
gem install xcpretty --no-ri --no-rdoc
pod install
ci:
xcodebuild -workspace EKAlgorithmsApp.xcworkspace/ -scheme EKAlgorithmsSpecs -sdk macosx -configuration Release clean test | xcpretty -c
Travis CI 方面的配置似乎发生了一些变化,但我对 Ruby 不是很熟悉,因此我需要有关如何修复该警告的帮助 运行 我的测试成功了。
通过在我的 .travis.yml
文件中添加下一行解决了这个问题:
osx_image: xcode7.3
所以我的 .yml
文件现在看起来像:
language: objective-c
osx_image: xcode7.3
before_install:
- sw_vers
- cd EKAlgorithmsApp
install: make install
script: make ci