Skip to content

Commit cc12e8a

Browse files
committed
ci: enable travis
1 parent 7a47294 commit cc12e8a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: node_js
2+
cache:
3+
directories:
4+
- ~/.npm
5+
node_js:
6+
- "12.3.1"
7+
notifications:
8+
email: false
9+
stages:
10+
- lint
11+
- name: deploy
12+
if: branch = master
13+
jobs:
14+
include:
15+
- stage: lint
16+
name: eslint
17+
script: npx eslint .
18+
- stage: lint
19+
name: commitlint
20+
before_script:
21+
- npm i -g @commitlint/travis-cli
22+
script: commitlint-travis
23+
- stage: deploy
24+
script: npx semantic-release

0 commit comments

Comments
 (0)