0
我使用提供的說明here嘗試將github推送到s3存儲桶的靜態代碼。問題是,在構建我得到以下錯誤:如何使用travis-ci構建,而沒有實際的代碼構建? (將靜態代碼部署到s3)
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/home/travis/.rvm/gems/[email protected]/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
/home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
The command "rake" exited with 1.
看來,因爲我沒有,我默認爲紅寶石語言集,它正試圖建立一個makefile文件。事情是:我沒有任何代碼可以構建。我不需要用任何語言做任何事情。只需將代碼上傳到S3。那麼有沒有辦法不運行實際的構建,並有這項工作?
我.travis.yml樣子:
deploy:
provider: s3
access_key_id: myaccesskey
secret_access_key:
secure: myverylongsecurysecretkey
bucket: searchlist.org
acl: public_read
on:
repo: myuser/myrepo