我有这个错误:
dpl.1
Installing deploy dependencies
!!! Script support is experimental !!!
dpl.2
Preparing deploy
dpl.3
Deploying application
/home/travis/.rvm/gems/ruby-2.2.6/gems/dpl-1.8.43/lib/dpl/cli.rb:54:in `system': no implicit conversion of nil into String (TypeError)
from /home/travis/.rvm/gems/ruby-2.2.6/gems/dpl-1.8.43/lib/dpl/cli.rb:54:in `shell'
from /home/travis/.rvm/gems/ruby-2.2.6/gems/dpl-1.8.43/lib/dpl/provider/script.rb:18:in `push_app'
from /home/travis/.rvm/gems/ruby-2.2.6/gems/dpl-1.8.43/lib/dpl/provider.rb:154:in `block in deploy'
from /home/travis/.rvm/gems/ruby-2.2.6/gems/dpl-1.8.43/lib/dpl/cli.rb:41:in `fold'
from /home/travis/.rvm/gems/ruby-2.2.6/gems/dpl-1.8.43/lib/dpl/provider.rb:154:in `deploy'
from /home/travis/.rvm/gems/ruby-2.2.6/gems/dpl-1.8.43/lib/dpl/cli.rb:32:in `run'
from /home/travis/.rvm/gems/ruby-2.2.6/gems/dpl-1.8.43/lib/dpl/cli.rb:7:in `run'
from /home/travis/.rvm/gems/ruby-2.2.6/gems/dpl-1.8.43/bin/dpl:5:in `<top (required)>'
from /home/travis/.rvm/gems/ruby-2.2.6/bin/dpl:23:in `load'
from /home/travis/.rvm/gems/ruby-2.2.6/bin/dpl:23:in `<main>'
failed to deploy
在我的travis部署阶段
有人知道如何解决这个问题吗?
我的travis.yml示例:
language: java
jdk:
- oraclejdk8
os:
- linux
branches:
only:
- master
- develop
- test
before_install:
- curl -fsSL https://clis.ng.bluemix.net/install/linux | sh
install: true
script:
- "./gradlew test -s"
deploy:
provider: script
skip_cleanup: true
scirpt: deploy.sh
on:
branch: develop
我不认为该travis真正执行我的部署脚本。 我想我做错了什么。
但是travis lint说看起来很有效
答案 0 :(得分:2)
在纠正scirpt
中的拼写错误后,错误是否也会发生?