This repository has been archived by the owner on Jan 17, 2025. It is now read-only.
forked from ember-cli/ember-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
69 lines (57 loc) · 1.68 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
sudo: false
dist: trusty
addons:
chrome: stable
language: node_js
node_js:
- "4"
- "6"
- "8"
- "9"
branches:
only:
- master
- beta
- release
- auto
- /^greenkeeper.*$/
cache:
yarn: true
directories:
- $HOME/.npm
- $HOME/.cache # includes bower's cache
env:
- TEST_COMMAND=test-all
matrix:
fast_finish: true
# We run our additional tests against the most-recent LTS.
# Rather than make the support unclear at the top, we'll manually exclude
# the default build and swap in the different commands.
exclude:
- node_js: "6"
env: TEST_COMMAND=test-all
# This is the reworking of the tests we run against the most-recent LTS.
include:
- node_js: "6"
env: TEST_COMMAND=test-all:cover
- node_js: "6"
env: DISABLE_EMBER_CLI_FEATURES=true; TEST_COMMAND=test-all
before_install:
# Once we no longer support Node.js 0.12 we can drop this entire section.
# prevent the npm loading indicator
- npm config --global set spin false
# if npm version is less than 3.0.0, upgrade to 3
- if [[ $(npm -v | cut -d '.' -f 1) -lt 3 ]]; then npm i -g npm@^3; fi
- if [[ $(npm -v | cut -d '.' -f 1) -gt 4 ]]; then npm i -g npm@^4; fi
# travis currently includes yarn v0.17.8 (20170705)
# this isn't new enough for our use of --non-interactive
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
script:
# For now we will use `npm` to kick off the test suite.
# Can switch to `yarn` once we no longer support Node.js 0.12:
# - yarn run $TEST_COMMAND
- npm run-script $TEST_COMMAND
after_success:
- if [[ $TEST_COMMAND == 'test-all:cover' ]]; then .travis/codecoverage.sh; fi
- .travis/deploy.sh