#!/bin/bash
echo "Executing deploy script..."
echo "Branch: $TRAVIS_BRANCH"
if [ $TRAVIS_BRANCH == "master" ]; then
    echo "Branch is master..."
    echo "Checking on PR..."
    echo "Pull Request: $TRAVIS_PULL_REQUEST"
    if [ $TRAVIS_PULL_REQUEST == false ]; then
        echo "Initiate deployment :)"
        firebase list --token "${FIREBASE_API_TOKEN}"
        firebase use michael-schilling --token "${FIREBASE_API_TOKEN}"
        firebase deploy --token "${FIREBASE_API_TOKEN}"
    else
        echo "Is a pull request..."
        echo "Not deploying."
    fi
else
    echo "Not master branch..."
    echo "Not deploying."
fi
#!/bin/bash
echo "Executing deploy script..."
echo "Branch: $TRAVIS_BRANCH"
if [ $TRAVIS_BRANCH == "master" ]; then
    echo "Branch is master..."
    echo "Checking on PR..."
    echo "Pull Request: $TRAVIS_PULL_REQUEST"
    if [ $TRAVIS_PULL_REQUEST == false ]; then
        echo "Initiate deployment :)"
        firebase use michael-schilling --token "${FIREBASE_API_TOKEN}"
        firebase deploy --token "${FIREBASE_API_TOKEN}"
    else
        echo "Is a pull request..."
        echo "Not deploying."
    fi
else
    echo "Not master branch..."
    echo "Not deploying."
fi
Remove command firebase list from travis script
Remove command firebase list from travis script
