common/corpus-common-addon/.travis.yml
changeset 537 d2e6ee099125
parent 511 fbf4e1afab01
child 543 aaaf9b0b09f6
equal deleted inserted replaced
536:b64c8c35c67d 537:d2e6ee099125
     1 ---
     1 ---
     2 language: node_js
     2 language: node_js
     3 node_js:
     3 node_js:
     4   - "4"
     4   - "6"
     5 
     5 
     6 sudo: false
     6 sudo: false
     7 
     7 
     8 cache:
     8 cache:
     9   directories:
     9   directories:
    10     - $HOME/.npm
    10     - $HOME/.npm
    11     - $HOME/.cache # includes bowers cache
       
    12 
    11 
    13 env:
    12 env:
    14   # we recommend testing LTS's and latest stable release (bonus points to beta/canary)
    13   # we recommend testing LTS's and latest stable release (bonus points to beta/canary)
    15   - EMBER_TRY_SCENARIO=ember-lts-2.4
    14   - EMBER_TRY_SCENARIO=ember-lts-2.4
    16   - EMBER_TRY_SCENARIO=ember-lts-2.8
    15   - EMBER_TRY_SCENARIO=ember-lts-2.8
    24   allow_failures:
    23   allow_failures:
    25     - env: EMBER_TRY_SCENARIO=ember-canary
    24     - env: EMBER_TRY_SCENARIO=ember-canary
    26 
    25 
    27 before_install:
    26 before_install:
    28   - npm config set spin false
    27   - npm config set spin false
    29   - npm install -g bower phantomjs-prebuilt
    28   - npm install -g phantomjs-prebuilt
    30   - bower --version
       
    31   - phantomjs --version
    29   - phantomjs --version
    32 
    30 
    33 install:
    31 install:
    34   - npm install
    32   - npm install
    35   - bower install
       
    36 
    33 
    37 script:
    34 script:
    38   # Usually, it's ok to finish the test scenario without reverting
    35   # Usually, it's ok to finish the test scenario without reverting
    39   #  to the addon's original dependency state, skipping "cleanup".
    36   #  to the addon's original dependency state, skipping "cleanup".
    40   - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup
    37   - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup