-
Notifications
You must be signed in to change notification settings - Fork 464
/
.travis.yml
41 lines (38 loc) · 1.23 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
sudo: required
language: node_js
# Trigger a push build on master and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
branches:
only:
- master
- /^greenkeeper.*$/
jobs:
include:
- stage: test
node_js: 8
script:
- npm run test
- npm run coverage
- node_js: 6
script: bin/quick-start-test.sh
- stage: docs
node_js: lts/*
script:
# install pandoc cli tool for .rst to .md converting
- wget https://github.com/jgm/pandoc/releases/download/1.16.0.2/pandoc-1.16.0.2-1-amd64.deb
- sudo dpkg -i pandoc-1.16.0.2-1-amd64.deb
# convert .rst to .md (textlint package needs .md file format to work)
- find ./ -iname "*.rst" -type f -exec sh -c 'pandoc "${0}" -o "${0%.md}.md"' {} \;
# run spelling/grammar/style/deadlink checks using textlint see '.textlintrc' configuration
# file for details. https://github.com/textlint/textlint
- npm run textlint
- stage: release
node_js: lts/*
script:
- npm run semantic-release
stages:
- test
- name: docs
if: branch = master
- name: release
if: branch = master