-
Notifications
You must be signed in to change notification settings - Fork 92
/
.travis.yml
57 lines (45 loc) · 1.08 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Sources :
# https://tailordev.fr/blog/2018/03/15/automated-npm-releases-with-travis-ci/
language: node_js
node_js: lts/*
cache: yarn
before_install:
- yarn add --dev codecov.io
install: yarn
script:
- yarn test
after_success:
- cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
- yarn clean
- yarn build
deploy:
# Github Releases: deploys the tagged version
- provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
on:
tags: true
# Github pages: deploys the demos site
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: demo/dist
on:
branch: master
condition: $TRAVIS_PULL_REQUEST = false
# Deploys to https://www.npmjs.com/package/material-ui-superselectfield
- provider: npm
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN
on:
branch: master
condition: $TRAVIS_PULL_REQUEST = false
branches:
only:
- master
notifications:
email: