2017-06-24 30 views
4

我正在尝试构建&使用Travis部署NodeJs + Python应用程序。使用Firebase部署的Travis类型错误:this.stream.clearLine不是函数

这大约是文件夹结构(一切属于相同回购)

main/ 
├── angular2-client/ 
│ ├── dist/ 
│ ├── node_modules/ 
│ └── ... 
├── django-server/ 
│ ├── server/ 
│ ├── manage.py 
│ └── ... 
├── .travis.yml 
└── requirements.txt 

,这是.travis.yml文件

language: python 
python: 
    - "3.4" 
sudo: required 
before_install: 
    - nvm install node 
    - npm --version 
install: 
    - cd ./angular2-client 
    - npm install 
    - cd .. 
    - pip install -r requirements.txt 
before_script: 
    - npm install -g firebase-tools 
script: 
    - cd ./angular2-client && npm run build 
after_success: 
    - firebase deploy --token $FIREBASE_API_TOKEN 
before_deploy: 
    - cd .. 
    - cd ./django-server 
deploy: 
    provider: heroku 
    api_key: $HEROKU_API_KEY 
    app: glacial-shore-18891 

运行线firebase deploy --token $FIREBASE_API_TOKEN特拉维斯引发错误**FIREBASE WARNING: Exception was thrown by user callback. TypeError: this.stream.clearLine is not a function**和后部署到Firebase失败。

我也遇到了Heroku部署的问题,但我会在稍后处理。

任何提示如何解决它?

谢谢

+0

从今天的版本开始,我与Firebase + Travis有同样的问题,昨天这个问题不存在。 – adriancarriger

回答

5

刚刚有同样的问题,似乎有一些进度栏正在制造一些问题。尝试在非交互模式下禁用它:

after_success: 
    - firebase deploy --token $FIREBASE_TOKEN --non-interactive 

它解决了我的问题,希望它有帮助。

相关问题