This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
forked from opentok/accelerator-annotation-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 2.28 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: node_js
node_js:
- '4.4'
env:
- SAUCE_USERNAME=opentok
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- echo \"//registry.npmjs.org/:_authToken=\\${NPM_TOKEN}\" > .npmrc
script:
- npm run build;
- npm test && bash <(curl -s https://codecov.io/bash);
- VER_DEPL=$(npm show opentok-annotation version);
- VERSION=$(jq '.version' package.json | sed -e 's/^"//' -e 's/"$//');
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" && "$VER_DEPL" != "$VERSION" ]]; then
git commit -m "New build. Bump npm version." --allow-empty;
git tag v$VERSION;
git push --quiet https://$GITHUBKEY@github.com/opentok/accelerator-annotation-js v$VERSION;
fi
deploy:
provider: npm
email: vsolutions@tokbox.com
api_key: $NPM_TOKEN
on:
branch: master
condition: $VERSION != $VER_DEPL
skip_cleanup: true
notifications:
slack:
secure: gnKw/BvuTAKFIxVwn0CtaEli4Md7NZPb3Pz0OqadzPv69jXKe1UehR1aunif6uae71Or1LqV19ez1/6JnjLjLpjQ0Zr4qmN+hY4mDNkuIToValGmsaRBqaB10JVzbgDvH2gZfucMdazpoPhNxbixRZw89hnm2psyJbm9nx2Ys9BGzu/F0D1+wIkVhsuLWf5NHUURSgSUvUvKuJtgX7HetbADbs5tqABGoKkBVhoWEyVKEn3TCKTczIaw2xFMXbt3KTFohlUM2wg2KqmbEHAZ1cbb6dWJM6chaLeBuBIv+HAjgWEz6kL8ongo8kvz2ip/x/xcrLfJXFC2tJjTHCVpYLmKhTWoVlAVBDKrEQEfDZTpbxUUO+BEAE7Fr+6RkNYdg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