forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
72 lines (62 loc) · 1.46 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
---
# Without sudo, Travis CI uses AUFS which is too slow for our I/O heavy tests.
# With AUFS, we get lots of timeouts and increased build times.
# See https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
sudo: required
git:
depth: 10
language: node_js
node_js:
- "8"
- "6"
- "4"
cache:
yarn: true
directories:
- node_modules
branches:
only:
- master
- /^.*-stable$/
env:
matrix:
- TEST_TYPE="build-dist"
- TEST_TYPE="check-lockfile"
- TEST_TYPE="lint"
- TEST_TYPE="test-only"
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"
- env: TEST_TYPE="build-dist"
node_js: "6"
- env: TEST_TYPE="check-lockfile"
node_js: "6"
- env: TEST_TYPE="lint"
node_js: "6"
include:
- os: osx
node_js: "6"
env: TEST_TYPE="test-only"
- os: osx
node_js: "8"
env: TEST_TYPE="test-only"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
RAMDISK_SIZE=330;
RAMDISK_SECTORS=$(( $RAMDISK_SIZE * 1024 * 1024 / 512 ));
RAMDISK=$(hdiutil attach -nomount ram://$RAMDISK_SECTORS);
newfs_hfs -v yarn_ramfs $RAMDISK;
export TMPDIR="/tmp/ramfs";
mkdir -p $TMPDIR;
mount -t hfs -o nobrowse $RAMDISK $TMPDIR;
fi
- yarn && yarn build
- alias yarn="node ./bin/yarn.js"
os:
- linux
script: yarn $TEST_TYPE