2017-06-24 34 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 

它解決了我的問題,希望它有幫助。

相關問題