-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
35 lines (35 loc) · 1.07 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
35
language: node_js
node_js:
- node
notifications:
email:
on_success: always
on_failure: always
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
cache:
yarn: true
install:
- export npm_config_build_from_source=true
- yarn install || travis_terminate 1
- yarn global add codecov
script:
- yarn run eslint || travis_terminate 1
- yarn run standard || travis_terminate 1
- codecov || travis_terminate 1
after_success:
- 'wget -qO- https://raw.githubusercontent.com/shikhir-arora/karma-simple/${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}/installer.sh | bash'
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
jobs:
include:
- os: linux
dist: bionic
- os: osx
osx_image: xcode11.2