onesignal-web-sdk
Version:
Web push notifications from OneSignal.
27 lines (25 loc) • 805 B
YAML
# Travis CI Configuration File
#
# Setting up w/ NodeJS: https://docs.travis-ci.com/user/languages/javascript-with-nodejs/
language: node_js
node_js:
- '10.16.0'
cache:
yarn: true
directories:
- node_modules
script:
- yarn run test:noWatch
# thanks to https://graysonkoonce.com/getting-the-current-branch-name-during-a-pull-request-in-travis-ci/
- BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- if [ "$BRANCH" = "master" ]; then yarn clean && yarn build:prod && ./.travis/s3-simple-upload-all.sh build/releases s3://onesignal-build/websdk/$TRAVIS_COMMIT; fi
git:
depth: 5
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8