-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
112 lines (112 loc) · 3.06 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
os: linux
dist: bionic
language: node_js
branches:
only:
- master
before_install:
- echo "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST"
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH"
- if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" ]]; then echo "NOT a PullRequest, skipping tests" && travis_terminate 0; fi
before_script:
- npm install -g gulp
- npm run lint
- npm run build:node
jobs:
include:
- stage: Tests (Latest NodeJS LTS)
name: Analyzer tests
script: npm run test:analyzer
node_js: "lts/*"
- name: Array manipulation tests
script: npm run test:array-manipulation
node_js: "lts/*"
- name: Distribution tests
script: npm run test:distribution
node_js: "lts/*"
- name: Encoder tests
script: npm run test:encoder
node_js: "lts/*"
- name: Hash tests
script: npm run test:hash
node_js: "lts/*"
- name: Index tests
script: npm run test:index
node_js: "lts/*"
- name: PRNG tests
script: npm run test:prng
node_js: "lts/*"
- name: Random color tests
script: npm run test:random-color
node_js: "lts/*"
- name: String utils tests
script: npm run test:stringutils
node_js: "lts/*"
- name: Utils tests
script: npm run test:utils
node_js: "lts/*"
- stage: Tests (NodeJS 12.x)
name: Analyzer tests
script: npm run test:analyzer
node_js: "12"
- name: Array manipulation tests
script: npm run test:array-manipulation
node_js: "12"
- name: Distribution tests
script: npm run test:distribution
node_js: "12"
- name: Encoder tests
script: npm run test:encoder
node_js: "12"
- name: Hash tests
script: npm run test:hash
node_js: "12"
- name: Index tests
script: npm run test:index
node_js: "12"
- name: PRNG tests
script: npm run test:prng
node_js: "12"
- name: Random color tests
script: npm run test:random-color
node_js: "12"
- name: String utils tests
script: npm run test:stringutils
node_js: "12"
- name: Utils tests
script: npm run test:utils
node_js: "12"
- stage: Tests (NodeJS 10.x)
name: Analyzer tests
script: npm run test:analyzer
node_js: "10"
- name: Array manipulation tests
script: npm run test:array-manipulation
node_js: "10"
- name: Distribution tests
script: npm run test:distribution
node_js: "10"
- name: Encoder tests
script: npm run test:encoder
node_js: "10"
- name: Hash tests
script: npm run test:hash
node_js: "10"
- name: Index tests
script: npm run test:index
node_js: "10"
- name: PRNG tests
script: npm run test:prng
node_js: "10"
- name: Random color tests
script: npm run test:random-color
node_js: "10"
- name: String utils tests
script: npm run test:stringutils
node_js: "10"
- name: Utils tests
script: npm run test:utils
node_js: "10"
cache:
directories:
- "node_modules"