# For more information about the configurations used
# in this file, please see the Travis CI documentation:
# http://docs.travis-ci.com

before_script:
  - ./test/setup/setup.sh

env:
  global:
    - BUILD_DIR="$TRAVIS_BUILD_DIR"
    - SERVER_SPECIFIC_TESTS="test/tests.js"

language: node_js

matrix:
  include:

    # Test for Apache 2.2.x
    - env:
        - APACHE_VERSION="2.2.x"
      node_js: "0.10"
      script:
        - sudo service apache2 restart
        - npm test

    # Test for Apache 2.4.x
    - env:
        - APACHE_VERSION="2.4.x"
      node_js: "0.10"
      script:
        - sudo /usr/local/apache2/bin/apachectl start
        - npm test

# For more information about the configurations used
# in this file, please see the Travis CI documentation:
# http://docs.travis-ci.com

before_script:
  - ./test/setup/setup.sh

env:
  global:
    - BUILD_DIR="$TRAVIS_BUILD_DIR"
    - SERVER_SPECIFIC_TESTS="test/tests.js"

git:
  depth: 10

language: node_js

matrix:
  include:

    # Test for Apache 2.2.x
    - env:
        - APACHE_VERSION="2.2.x"
      node_js: "0.10"
      script:
        - sudo service apache2 restart
        - npm test

    # Test for Apache 2.4.x
    - env:
        - APACHE_VERSION="2.4.x"
      node_js: "0.10"
      script:
        - sudo /usr/local/apache2/bin/apachectl start
        - npm test

Make Travis CI limit the Git clone depth even more
Make Travis CI limit the Git clone depth even more

In order to speed up the tests a little bit more, this commit informs
Travis CI to limit the Git clone depth to 10 commits (default is 50).

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

e.g.:

 $ time g clone --depth 10 git@github.com:h5bp/server-configs-apache.git
 ...

 real    0m2.549s
 user    0m0.068s
 sys     0m0.048s

 $ time g clone --depth 50 git@github.com:h5bp/server-configs-apache.git
 ...

 real    0m3.139s
 user    0m0.128s
 sys     0m0.024s

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Ref: http://git-scm.com/docs/git-clone
     https://twitter.com/travisci/status/288390896339267584
