forked from lerna/lerna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (53 loc) · 1.33 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
# 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 Tests (publish)"
env:
- LERNA_CI_SCRIPT="ci:windows"
- LERNA_CI_TYPE="publish"
# and then the rest of the tests (quicker, lower priority)
- os: windows
node_js: "12"
name: "Windows Tests (non-publish)"
env:
- LERNA_CI_SCRIPT="ci:windows"
- 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
# make git subcommands work again
export PATH="/c/Program Files/Git/mingw64/bin:/c/Program Files/Git/mingw64/usr/bin:/c/Program Files/Git/mingw64/libexec/git-core:$PATH"
;;
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