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
crash source
share