language: ruby

install:
  # Install binary pandoc from Rstudio
  # To use Pandoc, uncomment the following
  # - export PATH="$HOME/pandoc:$PATH"
  # - mkdir $HOME/pandoc
  # - curl -O https://s3.amazonaws.com/rstudio-buildtools/pandoc-1.12.3.zip
  # - unzip -j pandoc-1.12.3.zip pandoc-1.12.3/linux/debian/x86_64/pandoc
  #     -d $HOME/pandoc
  # - chmod +x $HOME/pandoc/pandoc
  # - pandoc --version

  # Install Jekyll and dependencies
  - bundle install

# script: bundle exec rake site:deploy --quiet
script: 
    - bundle exec jekyll build
    - ls _site/

after_success:
    - firebase list --token "${FIREBASE_API_TOKEN}"
    - firebase use crossover-app --token "${FIREBASE_API_TOKEN}"
    - firebase deploy --token "${FIREBASE_API_TOKEN}"


env:
  global:
    secure: EXAMPLE

# Generate your secure token with the travis gem:
# get Github token from your Travis CI profile page
# gem install travis
# travis encrypt 'GIT_NAME="YOUR_USERNAME" GIT_EMAIL="YOUR_EMAIL" GH_TOKEN=YOUR_TOKEN'
language: ruby

before_script:
- npm install -g firebase-tools

install:
  # Install binary pandoc from Rstudio
  # To use Pandoc, uncomment the following
  # - export PATH="$HOME/pandoc:$PATH"
  # - mkdir $HOME/pandoc
  # - curl -O https://s3.amazonaws.com/rstudio-buildtools/pandoc-1.12.3.zip
  # - unzip -j pandoc-1.12.3.zip pandoc-1.12.3/linux/debian/x86_64/pandoc
  #     -d $HOME/pandoc
  # - chmod +x $HOME/pandoc/pandoc
  # - pandoc --version

  # Install Jekyll and dependencies
  - bundle install

# script: bundle exec rake site:deploy --quiet
script: 
    - bundle exec jekyll build
    - ls _site/

after_success:
    - firebase list --token "${FIREBASE_API_TOKEN}"
    - firebase use crossover-app --token "${FIREBASE_API_TOKEN}"
    - firebase deploy --token "${FIREBASE_API_TOKEN}"


env:
  global:
    secure: EXAMPLE

# Generate your secure token with the travis gem:
# get Github token from your Travis CI profile page
# gem install travis
# travis encrypt 'GIT_NAME="YOUR_USERNAME" GIT_EMAIL="YOUR_EMAIL" GH_TOKEN=YOUR_TOKEN'
Install firebase tools in Travis script
Install firebase tools in Travis script
