Skip to content

Commit

Permalink
all setup for karma in the same command
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuno Campos authored and nfcampos committed Jun 6, 2016
1 parent 175fd6a commit 3ec1838
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ before_install:
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
before_script:
- "sh install-relevant-react.sh"
- if [ $KARMA == 1 ]; then export CHROME_BIN=chromium-browser; fi
- if [ $KARMA == 1 ]; then export DISPLAY=:99.0; fi
- if [ $KARMA == 1 ]; then sh -e /etc/init.d/xvfb start; fi
- if [ $KARMA == 1 ]; then export CHROME_BIN=chromium-browser; export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi
script:
- 'if [ -z "$REACT" ] && [ "${TRAVIS_NODE_VERSION}" = "4" ]; then npm run test:env -- "${EXAMPLE}" ; elif [ -z "$REACT" ]; then echo "Test Skipped" ; elif [ $KARMA == 1 ]; then npm run test:karma -- --single-run; elif [ "${TRAVIS_NODE_VERSION}" = "4" ]; then npm run lint && npm run travis ; elif [ "${TRAVIS_NODE_VERSION}" = "0.12" ]; then npm run travis ; else npm test ; fi'
after_script:
Expand Down

0 comments on commit 3ec1838

Please sign in to comment.