Permalink
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (40 sloc) 1.38 KB
language: node_js
sudo: false
node_js:
- '4'
- '6'
env:
matrix:
- TEST_SUITE=senecajs/seneca
- TEST_SUITE=senecajs/seneca-entity
- TEST_SUITE=senecajs/seneca-user
- TEST_SUITE=senecajs/seneca-transport
before_script:
- export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
- if [ "null" == "$BRANCH" ]; then BRANCH=""; else BRANCH="#$BRANCH"; fi
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- TEST_SUITE_FOLDER=$(basename $TEST_SUITE)
- echo "TEST_SUITE:$TEST_SUITE"
- echo "TEST_SUITE_FOLDER:$TEST_SUITE_FOLDER"
- SENECA_INSTALL=https://github.com/senecajs/seneca$BRANCH;
- echo "SENECA_INSTALL:$SENECA_INSTALL";
- if [ $TEST_SUITE_FOLDER != 'seneca' ]; then
git clone https://github.com/$TEST_SUITE;
cd $TEST_SUITE_FOLDER;
npm i;
npm uninstall seneca;
npm install $SENECA_INSTALL;
fi
cache:
directories:
- node_modules
after_script:
- npm run coveralls
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/b98f41fd6ac7d5740632
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false