-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (37 loc) · 932 Bytes
/
.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
language: node_js
node_js:
- '8'
cache:
directories:
- ~/.npm
- node_modules
npm: true
notifications:
email: false
branches:
only:
- master
before_install:
# package-lock.json was introduced in npm@5
- '[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest' # skipped when using node 9
- npm install -g github-label-sync
install:
- travis_retry npm install
stages:
- test
- name: deploy
if: repo = seantrane/commitlint-config-awesome
AND type != pull_request
AND branch = master
jobs:
include:
- stage: test
name: 'Checks and Tests'
script:
- commitlint-travis
- travis_retry github-label-sync -a "$GH_TOKEN" -l 'https://git.io/fAe5i' seantrane/commitlint-config-awesome || echo "GitHub Labels could not be synced."
- npm run lint
- stage: deploy
name: 'Publish and Release'
script:
- npm run semantic-release