Travis with Firebase deploy TypeError: this.stream.clearLine is not a function

I am trying to build and deploy a NodeJs + Python application using Travis.

This is roughly a folder structure (everything refers to the same repo)

main/
β”œβ”€β”€ angular2-client/
β”‚   β”œβ”€β”€ dist/
β”‚   β”œβ”€β”€ node_modules/
β”‚   └── ...
β”œβ”€β”€ django-server/
β”‚    β”œβ”€β”€ server/
β”‚    β”œβ”€β”€ manage.py
β”‚    └── ...
β”œβ”€β”€ .travis.yml
└── requirements.txt

and this is a file .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

After running the line, firebase deploy --token $FIREBASE_API_TOKENTravis gives an error message **FIREBASE WARNING: Exception was thrown by user callback. TypeError: this.stream.clearLine is not a function**and the Firebase deployment fails.

I also had a problem deploying Heroku, but I will take care of this later.

Any hint on how to solve it?

thank

+4
source share
1 answer

It’s just that you had the same problem, it seems that some progress indicators cause some problems. Try disabling it in non-interactive mode:

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

, , .

+5

Source: https://habr.com/ru/post/1680020/


All Articles