Skip to content

Commit

Permalink
fix(travis): ensure babel is run for each node version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Jul 20, 2016
1 parent 85d2ef4 commit 482d15c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ cache:
directories:
- node_modules

before_script:
- npm prune

after_success:
- curl -Lo travis_after_all.py https://git.io/travis_after_all
- python travis_after_all.py
- export $(cat .to_export_back) > /dev/null
- npm run coverage
- npm run codeclimate
- declare -A PRESETS=([es2015]= ["node4"]=node4 ["node5"]=node5 ["node6"]=node6);
- for preset in "${!PRESETS[@]}"; do BABEL_ENV=$preset npm run compile -- -d lib/${PRESETS[$preset]}; done
- BABEL_ENV=es2015 npm run compile -- -d lib
- BABEL_ENV=node4 npm run compile -- -d lib/node5
- BABEL_ENV=node5 npm run compile -- -d lib/node4
- BABEL_ENV=node6 npm run compile -- -d lib/node6
- npm run semantic-release

branches:
Expand Down

0 comments on commit 482d15c

Please sign in to comment.