forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (45 loc) · 1.05 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
---
git:
depth: 10
language: node_js
node_js:
- "6"
- "4"
sudo: required # Until Yarn repo is added to apt-source-whitelist
addons:
apt:
packages:
- git
branches:
only:
- master
- /^.*-stable$/
cache:
# Yarn installed with Travis breaks in Node 4, see https://travis-ci.org/yarnpkg/yarn/jobs/215947941
yarn: false
env:
matrix:
- TEST_TYPE="build-dist"
- TEST_TYPE="check-lockfile"
- TEST_TYPE="lint"
- TEST_TYPE="test-ci -- -- --maxWorkers 3"
matrix:
exclude:
- env: TEST_TYPE="build-dist"
node_js: "4"
- env: TEST_TYPE="check-lockfile"
node_js: "4"
- env: TEST_TYPE="lint"
node_js: "4"
include:
- os: osx
node_js: "6"
env: TEST_TYPE="test-ci -- -- --maxWorkers 1"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/bootstrap-env-ubuntu.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install yarn; fi
- node --version
os:
- linux
script: travis_retry yarn $TEST_TYPE