os:
    - linux
    - osx
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
      - graphviz
      - g++-4.8
      - ruby-sass

branches:
  except:
    - gh-pages
notifications:
  irc:
    channels:
    - "irc.freenode.net#perl6"
    on_success: change
    on_failure: always
    template:
      - "Doc build %{result}. %{author} '%{commit_message}'"
      - "%{build_url} %{compare_url}"

language: perl6
sudo: false
perl6:
  - latest
before_install:
  - nvm install 7.2.1
  - nvm use 7.2.1
install:
  - rakudobrew build-zef
  - export PATH="$PATH:/$HOME/.rakudobrew/moar-nom/install/share/perl6/site/bin"
  - travis_retry zef --/tap-harness --force --/test install LWP::Simple
  - travis_retry zef --/tap-harness --depsonly install .
  - travis_retry zef --/tap-harness install Pod::To::HTML

script:
  - make test
  - export CXX=$(command -v g++-4.8 >/dev/null 2>&1; if [ $? -eq 1 ]; then printf "g++"; else printf "g++-4.8"; fi)
  - $CXX --version
  - make html
matrix:
  allow_failures:
    - os: osx

os:
    - linux
    - osx
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
      - graphviz
      - g++-4.8
      - ruby-sass

branches:
  except:
    - gh-pages
notifications:
  irc:
    channels:
    - "irc.freenode.net#perl6"
    on_success: change
    on_failure: always
    template:
      - "Doc build %{result}. %{author} '%{commit_message}'"
      - "%{build_url} %{compare_url}"

language: perl6
sudo: false
perl6:
  - latest
before_install:
  - nvm install 7.2.1
  - nvm use 7.2.1
install:
  - rakudobrew build-zef
  - export PATH="$PATH:/$HOME/.rakudobrew/moar-nom/install/share/perl6/site/bin"
  - travis_retry zef --/tap-harness --force --/test install LWP::Simple
  - travis_retry zef --/tap-harness --depsonly install .

script:
  - make test
  - export CXX=$(command -v g++-4.8 >/dev/null 2>&1; if [ $? -eq 1 ]; then printf "g++"; else printf "g++-4.8"; fi)
  - $CXX --version
  - make html
matrix:
  allow_failures:
    - os: osx

Remove unneeded zef install line
Remove unneeded zef install line

Pod::To::HTML is already installed by previous commands and does not
need to be reinstalled.
