sudo: required
language: node_js

env:
  - TEST="tests/end2end/A* tests/end2end/I* tests/end2end/L*"
  - TEST="tests/end2end/Mee*"
  - TEST="tests/end2end/Mi*"
  - TEST="tests/end2end/R* tests/end2end/S* tests/end2end/T*"
  - TEST="unit"

addons:
  artifacts:
    # This uploads all headless screenshots generated with:
    #   browser.saveScreenshot("my-testcase");
    # to our Amazon AWS S3 account.
    # After build run completed, you can view the snapshots here:
    # http://s3files.4minitz.com/4minitz/4minitz
    debug: true
    s3_region: "us-west-2" # defaults to "us-east-1"
    paths:
    - $(ls ./tests/snapshots/* | tr "\n" ":")

cache:
  directories:
    - node_modules
    - .meteor/local
    - ~/.meteor
    - $(npm config get prefix)/bin/chimp

node_js:
  - "stable"

before_install:
  - mkdir ./tests/snapshots
  - ./get_meteor.sh
  - npm install -g chimp@0.36.1

script:
  - ./travis.sh "$TEST"

sudo: required
language: node_js

env:
  - TEST="tests/end2end/A* tests/end2end/I* tests/end2end/L*"
  - TEST="tests/end2end/Mee*"
  - TEST="tests/end2end/Mi*"
  - TEST="tests/end2end/R* tests/end2end/S* tests/end2end/T*"
  - TEST="unit"

addons:
  artifacts:
    # This uploads all headless screenshots generated with:
    #   browser.saveScreenshot("my-testcase");
    # to our Amazon AWS S3 account.
    # After build run completed, you can view the snapshots here:
    # http://s3files.4minitz.com/4minitz/4minitz
    debug: true
    s3_region: "us-west-2" # defaults to "us-east-1"
    paths:
    - $(ls ./tests/snapshots/* | tr "\n" ":")

cache:
  directories:
    - node_modules
    - .meteor/local
    - /usr/local/bin/meteor
    - ~/.meteor
    - $(npm config get prefix)/bin/chimp

node_js:
  - "stable"

before_install:
  - mkdir ./tests/snapshots
  - ./get_meteor.sh
  - npm install -g chimp@0.36.1

script:
  - ./travis.sh "$TEST"

Add meteor convenience script to cache
Add meteor convenience script to cache
