forked from ember-cli/ember-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (65 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
70
71
72
73
74
75
76
77
78
79
80
81
sudo: false
dist: trusty
addons:
chrome: stable
language: node_js
node_js:
- "10"
branches:
only:
- master
- beta
- release
- auto
- /^greenkeeper.*$/
cache:
yarn: true
directories:
- $HOME/.npm
- $HOME/.cache # includes bower's cache
stages:
- basic test
- additional tests
- name: deploy
if: type IN (push) AND branch = release
jobs:
fail_fast: true
include:
- stage: basic test
env: NAME=test # used only to make Travis UI show description
script:
- yarn test
- stage: additional tests
env: NAME=NODE_6
node_js: 6
- env: NAME=NODE_8
node_js: 8
- env: NAME=NODE_10
node_js: 10
script:
- yarn test:cover
after_success:
- .travis/codecoverage.sh
- env: EMBER_CLI_ENABLE_ALL_EXPERIMENTS=true
- env: EMBER_CLI_PACKAGER=true
- env: EMBER_CLI_MODULE_UNIFICATION=true
- env: EMBER_CLI_DELAYED_TRANSPILATION=true
- env: EMBER_CLI_BROCCOLI_2=true
- env:
- EMBER_CLI_SYSTEM_TEMP=true
- EMBER_CLI_BROCCOLI_2=true
- stage: deploy
script: ./.travis/deploy.sh
before_install:
# 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 version is newer than 4, downgrade to 4
- 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:
- yarn test:all