我是新来的特拉维斯,并开始了它的工作与颤栗。
我正在使用flute_music_player 插件作为我的音乐播放器应用程序。
现在,app在我的机器上在本地工作/建造得很好,但是我不能在Travis上构建它。
这是我得到的
$ ./flutter/bin/flutter test
Running "flutter packages get" in tumultus...
Package flute_music_player requires Flutter SDK version ^0.1.2 but the current SDK is 0.0.0-unknown.
---- Log transcript ----
.
.
.
.
---- End log transcript ----
pub get failed (1)
The command "./flutter/bin/flutter test" exited with 1.
store build cache
nothing changed, not updating cache
Done. Your build exited with 1.这是指向我的完整工作日志。的链接
我的travis.yml是:
os:
- linux
sudo: false
addons:
apt:
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
sources:
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
packages:
- libstdc++6
- fonts-droid
before_script:
- git clone https://github.com/flutter/flutter.git -b alpha --depth 1
- ./flutter/bin/flutter doctor
script:
- ./flutter/bin/flutter test
cache:
directories:
- $HOME/.pub-cache我的完整项目可以在github 这里上找到
实际上,我已经从这里复制了大部分代码,我试图在travis上运行他的项目,但日志上也有相同的错误。
有没有我缺少的地方,请帮帮忙。
感谢事先提供的任何帮助或建议。
发布于 2018-04-24 16:52:17
好吧,问题在于插件版本,而不是真正的Travis。
https://stackoverflow.com/questions/49760238
复制相似问题