language: node_js
matrix:
    fast_finish: true
    allow_failures:
        - node_js: "0.12"
node_js:
    - "0.10"
    - "0.12"

services:
    - couchdb

env:
    global:
        - NODE_ENV=test
        - DEBUG_LEVEL=0
        - NAME=emails
        - TOKEN=apptoken

before_install:
    - travis_retry npm install forever coffee-script -g
    - travis_retry pip install --user transifex-client
    - travis_retry git clone git://github.com/cozy/cozy-data-system.git
    - cd cozy-data-system
    - travis_retry npm install #data-system
    - env - NAME=data-system TOKEN=token forever start -o forever-ds.log build/server.js
    - coffee commands.coffee test-install emails
    - cd ..
    - mkdir log
    - travis_retry npm install # do it now, DovecotTesting needs it

script:
    - npm run build
    - npm run fixtures
    - npm run test:build

after_failure:
    - cat cozy-data-system/forever-ds.log
    - cat cozy-data-system/log/test.log

language: node_js
matrix:
    fast_finish: true
    allow_failures:
        - node_js: "0.12"
node_js:
    - "0.10"
    - "0.12"

services:
    - couchdb

env:
    global:
        - NODE_ENV=test
        - DEBUG_LEVEL=0
        - NAME=emails
        - TOKEN=apptoken

before_install:
    - travis_retry npm install forever coffee-script -g
    - travis_retry pip install --user transifex-client
    - travis_retry git clone git://github.com/cozy/cozy-data-system.git
    - cd cozy-data-system
    - travis_retry npm install #data-system
    - env NAME=data-system TOKEN=token forever start -o forever-ds.log build/server.js
    - coffee commands.coffee test-install emails
    - cd ..
    - mkdir log
    - travis_retry npm install # do it now, DovecotTesting needs it

script:
    - npm run build
    - npm run fixtures
    - npm run test:build

after_failure:
    - cat cozy-data-system/forever-ds.log
    - cat cozy-data-system/log/test.log

Fix env path for Travis
Fix env path for Travis
