-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
49 lines (41 loc) · 1.1 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
node_js: 10
cache:
yarn: true
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
install:
- yarn install --no-lockfile --non-interactive
stages:
- name: 'Conventional Commits'
if: type = push
- 'Basic Tests'
- 'Compatibility Tests'
- name: 'Deploy'
if: branch = master AND type = push
jobs:
fail_fast: true
include:
- stage: 'Conventional Commits'
name: 'Conventional Commits'
script: commitlint-travis
- stage: 'Basic Tests'
name: 'Fixed Dependencies'
install: yarn install --non-interactive
- stage: 'Compatibility Tests'
name: 'Floating Dependencies'
- &ts-version-test
env: TS_VERSION=2.8
before_script: yarn add -D "typescript@$TS_VERSION"
- <<: *ts-version-test
env: TS_VERSION=3.0
- <<: *ts-version-test
env: TS_VERSION=latest
- <<: *ts-version-test
env: TS_VERSION=next
- stage: 'Deploy'
name: 'Publish to npm'
install:
- yarn install --non-interactive
script: yarn semantic-release