Update-TravisCI-Config Enable ccache on Travis CI to speed up tests

Push event #7 errored

  • Ran for
  • Total time
language: node_js

cache:
  npm: true
  ccache: true

node_js:
  - stable
  - 7
  - 6
  - 5
  - 4
  - 0

os:
  - linux
  - osx

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - doxygen
      - g++-4.8

# Install scripts. (runs after repo cloning)
install:
  - if [ $TRAVIS_OS_NAME == "linux" ]; then export CXX=g++-4.8; fi
  # install modules
  - npm install --build-from-source

# Post-install test scripts.
script:
  - export PATH="/usr/lib/ccache/:$PATH"
  - if [ $TRAVIS_OS_NAME == "linux" ] && [ $TRAVIS_NODE_VERSION == "stable" ]; then
      make test VERBOSE=1;
      make package VERBOSE=1;
    fi

  - npm test

after_success:
  - npm run deploy
Build Config
{
  "os": [
    "linux",
    "osx"
  ],
  "cache": {
    "npm": true,
    "ccache": true
  },
  "addons": {
    "apt": {
      "sources": [
        "ubuntu-toolchain-r-test"
      ],
      "packages": [
        "doxygen",
        "g++-4.8"
      ]
    }
  },
  "script": [
    "export PATH=\"/usr/lib/ccache/:$PATH\"",
    "if [ $TRAVIS_OS_NAME == \"linux\" ] && [ $TRAVIS_NODE_VERSION == \"stable\" ]; then make test VERBOSE=1; make package VERBOSE=1; fi",
    "npm test"
  ],
  "install": [
    "if [ $TRAVIS_OS_NAME == \"linux\" ]; then export CXX=g++-4.8; fi",
    "npm install --build-from-source"
  ],
  "node_js": [
    "stable",
    7,
    6,
    5,
    4,
    0
  ],
  "language": "node_js",
  "after_success": [
    "npm run deploy"
  ]
}