forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (47 loc) · 892 Bytes
/
.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
---
git:
depth: 10
language: node_js
node_js:
- "6"
sudo: required # Until Yarn repo is added to apt-source-whitelist
addons:
apt:
packages:
- git
branches:
only:
- master
- /^.*-stable$/
cache:
directories:
- node_modules
- lib
- lib-legacy
- $HOME/.yarn-cache
env:
matrix:
- TEST_TYPE="build-dist"
- TEST_TYPE="check-lockfile"
- TEST_TYPE="lint"
- NODE_VERSION="6" TEST_TYPE="test-ci"
- NODE_VERSION="4" TEST_TYPE="test-ci"
matrix:
exclude:
- env: TEST_TYPE="build-dist"
os: osx
- env: TEST_TYPE="check-lockfile"
os: osx
- env: TEST_TYPE="lint"
os: osx
before_install:
# Repo for newer Node.js versions
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
- ./scripts/bootstrap-env-ubuntu.sh
install:
- node --version
- yarn install
os:
#- osx
- linux
script: npm run $TEST_TYPE