|
3 | 3 | const getChannelURL = require('ember-source-channel-url'); |
4 | 4 | const bootstrapVersion = process.env.BOOTSTRAPVERSION === '3' ? '^3.4.1' : '^4.3.1'; |
5 | 5 |
|
6 | | -module.exports = function() { |
7 | | - return Promise.all([ |
8 | | - getChannelURL('release'), |
9 | | - getChannelURL('beta'), |
10 | | - getChannelURL('canary') |
11 | | - ]).then((urls) => { |
12 | | - return { |
13 | | - useYarn: true, |
14 | | - command: 'ember test --filter !FastBoot', |
15 | | - scenarios: [ |
16 | | - { |
17 | | - name: 'ember-lts-2.18', |
18 | | - env: { |
19 | | - EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }) |
20 | | - }, |
21 | | - npm: { |
22 | | - devDependencies: { |
23 | | - '@ember/jquery': '^0.5.1', |
24 | | - 'ember-source': '~2.18.0', |
25 | | - 'bootstrap': bootstrapVersion |
26 | | - } |
27 | | - } |
| 6 | +module.exports = async function() { |
| 7 | + return { |
| 8 | + useYarn: true, |
| 9 | + command: 'ember test --filter !FastBoot', |
| 10 | + scenarios: [ |
| 11 | + { |
| 12 | + name: 'ember-lts-2.18', |
| 13 | + env: { |
| 14 | + EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }) |
28 | 15 | }, |
29 | | - { |
30 | | - name: 'ember-lts-3.4', |
31 | | - npm: { |
32 | | - devDependencies: { |
33 | | - 'ember-source': '~3.4.0', |
34 | | - 'bootstrap': bootstrapVersion |
35 | | - } |
| 16 | + npm: { |
| 17 | + devDependencies: { |
| 18 | + '@ember/jquery': '^0.5.1', |
| 19 | + 'ember-source': '~2.18.0', |
| 20 | + 'bootstrap': bootstrapVersion |
36 | 21 | } |
37 | | - }, |
38 | | - { |
39 | | - name: 'ember-release', |
40 | | - npm: { |
41 | | - devDependencies: { |
42 | | - 'ember-source': urls[0], |
43 | | - 'bootstrap': bootstrapVersion |
44 | | - } |
45 | | - }, |
46 | | - env: { |
47 | | - FAIL_ON_DEPRECATION: true |
| 22 | + } |
| 23 | + }, |
| 24 | + { |
| 25 | + name: 'ember-lts-3.4', |
| 26 | + npm: { |
| 27 | + devDependencies: { |
| 28 | + 'ember-source': '~3.4.0', |
| 29 | + 'bootstrap': bootstrapVersion |
48 | 30 | } |
49 | | - }, |
50 | | - { |
51 | | - name: 'ember-beta', |
52 | | - npm: { |
53 | | - devDependencies: { |
54 | | - 'ember-source': urls[1], |
55 | | - 'bootstrap': bootstrapVersion |
56 | | - } |
| 31 | + } |
| 32 | + }, |
| 33 | + { |
| 34 | + name: 'ember-lts-3.8', |
| 35 | + npm: { |
| 36 | + devDependencies: { |
| 37 | + 'ember-source': '~3.8.0', |
| 38 | + 'bootstrap': bootstrapVersion |
| 39 | + } |
| 40 | + } |
| 41 | + }, |
| 42 | + { |
| 43 | + name: 'ember-lts-3.12', |
| 44 | + npm: { |
| 45 | + devDependencies: { |
| 46 | + 'ember-source': '~3.12.0', |
| 47 | + 'bootstrap': bootstrapVersion |
| 48 | + } |
| 49 | + } |
| 50 | + }, |
| 51 | + { |
| 52 | + name: 'ember-release', |
| 53 | + npm: { |
| 54 | + devDependencies: { |
| 55 | + 'ember-source': await getChannelURL('release'), |
| 56 | + 'bootstrap': bootstrapVersion |
57 | 57 | } |
58 | 58 | }, |
59 | | - { |
60 | | - name: 'ember-canary', |
61 | | - npm: { |
62 | | - devDependencies: { |
63 | | - 'ember-source': urls[2], |
64 | | - 'bootstrap': bootstrapVersion |
65 | | - } |
66 | | - }, |
67 | | - env: { |
68 | | - FAIL_ON_DEPRECATION: true |
| 59 | + env: { |
| 60 | + FAIL_ON_DEPRECATION: true |
| 61 | + } |
| 62 | + }, |
| 63 | + { |
| 64 | + name: 'ember-beta', |
| 65 | + npm: { |
| 66 | + devDependencies: { |
| 67 | + 'ember-source': await getChannelURL('beta'), |
| 68 | + 'bootstrap': bootstrapVersion |
| 69 | + } |
| 70 | + } |
| 71 | + }, |
| 72 | + { |
| 73 | + name: 'ember-canary', |
| 74 | + npm: { |
| 75 | + devDependencies: { |
| 76 | + 'ember-source': await getChannelURL('canary'), |
| 77 | + 'bootstrap': bootstrapVersion |
69 | 78 | } |
70 | 79 | }, |
71 | | - // The default `.travis.yml` runs this scenario via `npm test`, |
72 | | - // not via `ember try`. It's still included here so that running |
73 | | - // `ember try:each` manually or from a customized CI config will run it |
74 | | - // along with all the other scenarios. |
75 | | - { |
76 | | - name: 'ember-default', |
77 | | - npm: { |
78 | | - devDependencies: { |
79 | | - 'bootstrap': bootstrapVersion |
80 | | - } |
| 80 | + env: { |
| 81 | + FAIL_ON_DEPRECATION: true |
| 82 | + } |
| 83 | + }, |
| 84 | + // The default `.travis.yml` runs this scenario via `npm test`, |
| 85 | + // not via `ember try`. It's still included here so that running |
| 86 | + // `ember try:each` manually or from a customized CI config will run it |
| 87 | + // along with all the other scenarios. |
| 88 | + { |
| 89 | + name: 'ember-default', |
| 90 | + npm: { |
| 91 | + devDependencies: { |
| 92 | + 'bootstrap': bootstrapVersion |
81 | 93 | } |
| 94 | + } |
| 95 | + }, |
| 96 | + { |
| 97 | + name: 'ember-default-with-jquery', |
| 98 | + env: { |
| 99 | + EMBER_OPTIONAL_FEATURES: JSON.stringify({ |
| 100 | + 'jquery-integration': true |
| 101 | + }) |
82 | 102 | }, |
83 | | - { |
84 | | - name: 'ember-default-with-jquery', |
85 | | - env: { |
86 | | - EMBER_OPTIONAL_FEATURES: JSON.stringify({ |
87 | | - 'jquery-integration': true |
88 | | - }) |
89 | | - }, |
90 | | - npm: { |
91 | | - devDependencies: { |
92 | | - '@ember/jquery': '^0.5.1', |
93 | | - 'bootstrap': bootstrapVersion |
94 | | - } |
| 103 | + npm: { |
| 104 | + devDependencies: { |
| 105 | + '@ember/jquery': '^0.5.1', |
| 106 | + 'bootstrap': bootstrapVersion |
95 | 107 | } |
| 108 | + } |
| 109 | + }, |
| 110 | + { |
| 111 | + name: 'ember-classic', |
| 112 | + env: { |
| 113 | + EMBER_OPTIONAL_FEATURES: JSON.stringify({ |
| 114 | + // TODO: tests fail if optional feature application-template-wrapper is enabled |
| 115 | + // 'application-template-wrapper': true, |
| 116 | + 'default-async-observers': false, |
| 117 | + 'template-only-glimmer-components': false |
| 118 | + }) |
96 | 119 | }, |
97 | | - { |
98 | | - name: 'ember-classic', |
99 | | - env: { |
100 | | - EMBER_OPTIONAL_FEATURES: JSON.stringify({ |
101 | | - // TODO: tests fail if optional feature application-template-wrapper is enabled |
102 | | - // 'application-template-wrapper': true, |
103 | | - 'default-async-observers': false, |
104 | | - 'template-only-glimmer-components': false |
105 | | - }) |
| 120 | + npm: { |
| 121 | + devDependencies: { |
| 122 | + 'bootstrap': bootstrapVersion |
106 | 123 | }, |
107 | | - npm: { |
108 | | - devDependencies: { |
109 | | - 'bootstrap': bootstrapVersion |
110 | | - } |
| 124 | + ember: { |
| 125 | + edition: 'classic' |
111 | 126 | } |
112 | | - }, |
113 | | - { |
114 | | - name: 'fastboot-tests', |
115 | | - command: 'ember test --filter FastBoot', |
116 | | - npm: { |
117 | | - devDependencies: { |
118 | | - 'bootstrap': bootstrapVersion |
119 | | - } |
| 127 | + } |
| 128 | + }, |
| 129 | + { |
| 130 | + name: 'fastboot-tests', |
| 131 | + command: 'ember test --filter FastBoot', |
| 132 | + npm: { |
| 133 | + devDependencies: { |
| 134 | + 'bootstrap': bootstrapVersion |
120 | 135 | } |
121 | | - }, |
122 | | - { |
123 | | - name: 'node-tests', |
124 | | - command: 'yarn run nodetest' |
125 | 136 | } |
126 | | - ] |
127 | | - }; |
128 | | - }); |
| 137 | + }, |
| 138 | + { |
| 139 | + name: 'node-tests', |
| 140 | + command: 'yarn run nodetest' |
| 141 | + } |
| 142 | + ] |
| 143 | + }; |
129 | 144 | }; |
0 commit comments