/
.travis.yml
75 lines (63 loc) · 1.53 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
# don't build tags, it's redundant
if: tag IS blank
git:
depth: 3
language: node_js
node_js:
- "12"
- "10"
- "8"
os:
- linux
env:
global:
- NO_UPDATE_NOTIFIER=1
- NODE_NO_WARNINGS=1
- LERNA_CI_SCRIPT=ci
matrix:
fast_finish: true
# only run windows tests on latest node
include:
# run publish/version tests first (slower, higher priority)
- os: windows
node_js: "12"
name: "Windows Unit Tests (publish)"
env:
- LERNA_CI_SCRIPT="test -- --maxWorkers=2"
- LERNA_CI_TYPE="publish"
- os: windows
node_js: "12"
name: "Windows Integration Tests (publish)"
env:
- LERNA_CI_SCRIPT="integration"
- LERNA_CI_TYPE="publish"
# and then the rest of the tests (quicker, lower priority)
- os: windows
node_js: "12"
name: "Windows Unit Tests (non-publish)"
env:
- LERNA_CI_SCRIPT="test -- --maxWorkers=2"
- LERNA_CI_TYPE="non-publish"
- os: windows
node_js: "12"
name: "Windows Integration Tests (non-publish)"
env:
- LERNA_CI_SCRIPT="integration"
- LERNA_CI_TYPE="non-publish"
cache: npm
before_install:
- |
case "${TRAVIS_OS_NAME}" in
"windows")
# yarn isn't installed by default
npm install --global yarn
;;
esac
install: npm ci
before_script:
- npm config set loglevel warn
- git config --global user.email test@example.com
- git config --global user.name "Tester McPerson"
- yarn --version
script:
- npm run $LERNA_CI_SCRIPT