language: node_js node_js: - '0.10' before_install: # get commit message - COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n') # figure out if we should publish - PUBLISH_BROWSER=false # if we are building a tag then publish - if [[ $TRAVIS_BRANCH == `git describe --tags --always HEAD` ]]; then PUBLISH_BROWSER=true; fi; # or if we put [publish client] in the commit message - if test "${COMMIT_MESSAGE#*'[publish browser]'}" != "$COMMIT_MESSAGE"; then PUBLISH_BROWSER=true; fi; install: - npm install script: - make test - make cover - make bundle - ./node_modules/.bin/bower install ./#$TRAVIS_BRANCH after_success: - npm run coveralls