forked from sharvit/generator-node-mdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (49 loc) · 1.32 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
language: node_js
jobs:
include:
- stage: test
node_js: 10
script:
- yarn test
- yarn build
- node_js: 12
script:
- yarn lint:commit-travis
- yarn lint
- yarn test
- yarn build
after_success: yarn coveralls
- stage: release
if: branch = master AND type = push
node_js: 12
script: yarn build
deploy:
- provider: script
skip_cleanup: true
script: yarn semantic-release
- provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: ./docs
keep_history: true
- stage: deploy node-mdl-starter
if: tag =~ ^v AND type = push
node_js: 12
env:
GITHUB_USERNAME: sharvit
GITHUB_NAME: "Avi Sharvit"
GITHUB_EMAIL: [email protected]
GITHUB_WEBSITE: "https://sharvit.github.io"
PROJECT_NAME: node-mdl-starter
before_install:
- git config --global user.email "${GITHUB_EMAIL}"
- git config --global user.name "${GITHUB_NAME}"
install:
- yarn global add yo generator-node-mdl
script: ./scripts/build-node-mdl-starter.sh
deploy:
on:
tags: true
provider: script
skip_cleanup: true
script: ./scripts/deploy-node-mdl-starter.sh