language: node_js
node_js:
  - "stable"
  - "5"
  - "4"
  - "0.12"
  - "0.10"
  - "iojs"

env:
  global:
    - GIT_NAME: Travis CI
    - GIT_EMAIL: nobody@nobody.org
    - GITHUB_REPO: bumped/bumped.github.io
    - GIT_SOURCE: _docpress
    - GIT_BRANCH: master

after_success:
  - npm run coveralls

after_script:
  - |
      declare exitCode;

      # -- [1] -------------------------------------------------------

      $(npm bin)/travis-after-all
      exitCode=$?

      # -- [2] -------------------------------------------------------

      if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" -a $exitCode -eq 0 ]; then
        npm install docpress git-update-ghpages
        ./node_modules/.bin/docpress build && ./node_modules/.bin/git-update-ghpages -e
      fi

language: node_js
node_js:
  - "stable"
  - "5"
  - "4"

env:
  global:
    - GIT_NAME: Travis CI
    - GIT_EMAIL: nobody@nobody.org
    - GITHUB_REPO: bumped/bumped.github.io
    - GIT_SOURCE: _docpress
    - GIT_BRANCH: master

after_success:
  - npm run coveralls

after_script:
  - |
      declare exitCode;

      # -- [1] -------------------------------------------------------

      $(npm bin)/travis-after-all
      exitCode=$?

      # -- [2] -------------------------------------------------------

      if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" -a $exitCode -eq 0 ]; then
        npm install docpress git-update-ghpages
        ./node_modules/.bin/docpress build && ./node_modules/.bin/git-update-ghpages -e
      fi

Drop node < 0.10 node support
Drop node < 0.10 node support
