forked from AimonaStudio/rrreol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (53 loc) · 1.21 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
language: node_js
node_js: '10'
os:
- linux
- osx
cache:
yarn: true
directories:
- node_modules
install:
- yarn --frozen-lockfile --non-interactive
stages:
- name: pre-test
if: (type != push)
- name: test
if: (tag IS blank) OR (type != push) OR (repo != AimonaStudio/rrreol)
- name: build
if: (tag IS blank) OR (type != push) OR (repo != AimonaStudio/rrreol)
- name: deploy
if: (type = push) AND (repo = AimonaStudio/rrreol)
jobs:
include:
- stage: pre-test
name: 'Lint commit message'
script:
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
commitlint-travis;
fi
- stage: test
name: 'Lint and test'
before_script:
- yarn global add codecov
script:
- yarn run lint
- lerna run test:coverage -- -i
after_script:
- codecov
- stage: build
name: "Build"
script:
- yarn run build
- stage: deploy
name: "Deploy"
before_deploy:
- yarn docs:build
deploy:
provider: pages
skip_cleanup: true
github_token: $ACCESS_TOKEN
keep_history: false
local_dir: ./docs/.vuepress/dist
on:
branch: master