Skip to content

Commit

Permalink
Update travis script
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Mar 7, 2017
1 parent 7085a2f commit 9d728dc
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@ node_js:
- "6"

env:
- MAX_WORKERS=2
matrix:
- TEST_TYPE=lint
- TEST_TYPE=build
- TEST_TYPE=test:web
- TEST_TYPE=test:rn

script:
- npm run test-all
- |
if [ "$TEST_TYPE" = lint ]; then
npm run lint
elif [ "$TEST_TYPE" = build ]; then
npm run dist
elif [ "$TEST_TYPE" = test:web ]; then
npm run test:web -- -w 2
elif [ "$TEST_TYPE" = test:rn ]; then
npm run test:rn -- -w 2
fi

0 comments on commit 9d728dc

Please sign in to comment.