forked from telerik/kendo-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (66 loc) · 1.48 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
os: linux
language: node_js
node_js: 12
cache: npm
notifications:
email: false
# Skip builds on version tags
branches:
except:
- "/\\.*@\\d+\\.\\d+\\.\\d+$/"
# Stages
stages:
# Pull request
- name: Pull request
if: type == pull_request
# Branch push, except master and dev
- name: Push in branch
if: type == push && branch NOT IN (master, develop)
# Master and develop
- name: Master and develop
if: type != pull_request && branch IN (master, develop)
# Jobs
jobs:
# Pull request
- stage: Pull request
install:
- npm ci
- npm run bootstrap
script:
- set -e
- npm run eslint
- npm run sasslint
- npm run docs:check
- npm run sass:flat
- npm run dart:flat
# Branch push, except master and dev
- stage: Push in branch
addons:
chrome: stable
firefox: latest
install:
- npm ci
- npm run bootstrap
script:
- set -e
- npm run sass:flat
- npm run pre-tests
- npm run karma-travis
- npm run visual-tests
# Master and develop
- stage: Master and develop
install:
- npm ci
- npm run bootstrap
script:
- set -e
- npm run eslint
- npm run sasslint
- npm run docs:check
- npm run dart:flat
- npm run dart:swatches
- npm run sass:flat
- npm run sass:swatches
after_success:
- printf "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> ~/.npmrc
- ./build/publish.sh