forked from alronz/carbon-addons-iot-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (25 loc) · 839 Bytes
/
.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
language: node_js
# fix to workaround node/jest incompatibility https://github.com/facebook/jest/issues/8069.
node_js:
- 8
stages:
- name: after_success
# require the branch name to be master (note for PRs this is the base branch name)
if: branch = master
before_install:
- node --version
# Repo for Yarn
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn
cache:
yarn: true
install:
- yarn install
- yarn list
script:
- yarn lint
- travis_wait yarn test --ci --maxWorkers=2 --verbose --coverage --coverageReporters=text-lcov | yarn run coveralls # report coveralls status
after_success:
- npx semantic-release@beta