# This will run on Travis' 'new' container-based infrastructure
dist: trusty
sudo: false

branches:
  only:
    - master

# Environment variables
env:
  global:
    - GH_REPO_NAME: TelegramBotPHP
    - DOXYFILE: $TRAVIS_BUILD_DIR/Doxyfile
    - GH_REPO_REF: github.com/Eleirbag89/TelegramBotPHP.git

# Install dependencies
addons:
  apt:
    packages:
      - doxygen
      - doxygen-doc
      - doxygen-latex
      - doxygen-gui
      - graphviz

# Build your code e.g. by calling make
script:
  - echo "Setup done"

# Generate and deploy documentation
after_success:
  - cd $TRAVIS_BUILD_DIR
  - chmod +x generateDocumentationAndDeploy.sh
  - ./generateDocumentationAndDeploy.sh
