2013-07-28 199 views
1

我有一個簡約.travis.yml文件,其中包括:Github的Travis CI?

php: 
    - "5.4" 

但在控制檯,它失敗:

$ rvm use default --install --binary --fuzzy 
Using /home/travis/.rvm/gems/ruby-1.9.3-p448 
$ ruby --version 
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux] 
$ rvm --version 
rvm 1.21.3 (latest-minor) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] 
$ gem --version 
2.0.3 
$ rake 
rake aborted! 
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) 
/home/travis/.rvm/gems/[email protected]/bin/ruby_noexec_wrapper:14:in `eval' 
/home/travis/.rvm/gems/[email protected]/bin/ruby_noexec_wrapper:14:in `<main>' 
(See full trace by running task with --trace) 
The command "rake" exited with 1. 
Done. Your build exited with 1. 

它默認爲紅寶石,當我已經指定PHP作爲語言,這裏怎麼了?

回答

2

嘗試使你的.travis.yml少一點簡約:

language: php 
php: 
    - 5.4 

而且,使用PHP與特拉維斯使用phpenv代替RVM

閱讀了更多有關在這裏: http://about.travis-ci.org/docs/user/languages/php/

+0

我已經做了這個..我得到一個不斷的失敗 –

+0

@SophieMackeral如果你有更多的信息或進步,我很樂意聽到它。我發現這個例子回購,也許它會幫助你找出什麼是錯的:https://github.com/travis-ci/travis-ci-php-example – Unixmonkey