Skip to content

Commit 85b3a6e

Browse files
committed
sync CI scripts with ember-cli output
1 parent fd46c8d commit 85b3a6e

File tree

4 files changed

+69
-30
lines changed

4 files changed

+69
-30
lines changed

.travis.yml

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ node_js:
44
# we recommend testing addons with the same minimum supported node version as Ember CLI
55
# so that your addon works for all apps
66
- "6"
7+
- "8"
8+
- "10"
79

810
sudo: false
911
dist: trusty
@@ -19,20 +21,37 @@ env:
1921
global:
2022
# See https://git.io/vdao3 for details.
2123
- JOBS=1
22-
matrix:
24+
25+
jobs:
26+
fail_fast: true
27+
allow_failures:
28+
- env: EMBER_TRY_SCENARIO=ember-canary
29+
30+
include:
31+
# runs linting and tests with current locked deps
32+
33+
- stage: "Tests"
34+
name: "Tests"
35+
install:
36+
- yarn install --non-interactive
37+
script:
38+
- yarn lint:js
39+
- yarn test
40+
- yarn test:node
41+
42+
- name: "Floating Dependencies"
43+
script:
44+
- yarn test
45+
2346
# we recommend new addons test the current and previous LTS
2447
# as well as latest stable release (bonus points to beta/canary)
25-
- EMBER_TRY_SCENARIO=ember-lts-2.16
26-
- EMBER_TRY_SCENARIO=ember-lts-2.18
27-
- EMBER_TRY_SCENARIO=ember-release
28-
- EMBER_TRY_SCENARIO=ember-beta
29-
- EMBER_TRY_SCENARIO=ember-canary
30-
- EMBER_TRY_SCENARIO=ember-default
31-
32-
matrix:
33-
fast_finish: true
34-
allow_failures:
48+
- stage: "Additional Tests"
49+
env: EMBER_TRY_SCENARIO=ember-lts-2.16
50+
- env: EMBER_TRY_SCENARIO=ember-lts-2.18
51+
- env: EMBER_TRY_SCENARIO=ember-release
52+
- env: EMBER_TRY_SCENARIO=ember-beta
3553
- env: EMBER_TRY_SCENARIO=ember-canary
54+
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
3655

3756
before_install:
3857
- curl -o- -L https://yarnpkg.com/install.sh | bash
@@ -42,8 +61,4 @@ install:
4261
- yarn install --no-lockfile --non-interactive
4362

4463
script:
45-
- yarn lint:js
46-
- yarn test:node
47-
# Usually, it's ok to finish the test scenario without reverting
48-
# to the addon's original dependency state, skipping "cleanup".
49-
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
64+
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO

appveyor.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,26 @@ init:
66

77
# Test against these versions of Node.js.
88
environment:
9+
MOCHA_REPORTER: "mocha-appveyor-reporter"
910
matrix:
1011
- nodejs_version: "6"
12+
- nodejs_version: "8"
13+
- nodejs_version: "10"
1114

1215
# Install scripts. (runs after repo cloning)
1316
install:
14-
- git rev-parse HEAD
15-
# Typical npm stuff.
16-
- md C:\nc
17-
- npm config set cache C:\nc
18-
- yarn install
19-
20-
# Post-install test scripts.
21-
test_script:
17+
- ps: Install-Product node $env:nodejs_version
18+
- yarn
19+
- yarn add mocha-appveyor-reporter
2220
# Output useful info for debugging.
2321
- node --version
2422
- yarn --version
23+
24+
# Post-install test scripts.
25+
test_script:
26+
- git rev-parse HEAD
2527
- yarn test
28+
- yarn test:node
2629

2730
# Don't actually build.
2831
build: off

config/ember-try.js

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,29 @@ module.exports = function() {
77
getChannelURL('release'),
88
getChannelURL('beta'),
99
getChannelURL('canary')
10-
]).then(urls => {
10+
]).then((urls) => {
1111
return {
12-
useYarn: true,
1312
scenarios: [
1413
{
1514
name: 'ember-lts-2.16',
15+
env: {
16+
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
17+
},
1618
npm: {
1719
devDependencies: {
20+
'@ember/jquery': '^0.5.1',
1821
'ember-source': '~2.16.0'
1922
}
2023
}
2124
},
2225
{
2326
name: 'ember-lts-2.18',
27+
env: {
28+
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
29+
},
2430
npm: {
2531
devDependencies: {
32+
'@ember/jquery': '^0.5.1',
2633
'ember-source': '~2.18.0'
2734
}
2835
}
@@ -56,8 +63,21 @@ module.exports = function() {
5663
npm: {
5764
devDependencies: {}
5865
}
66+
},
67+
{
68+
name: 'ember-default-with-jquery',
69+
env: {
70+
EMBER_OPTIONAL_FEATURES: JSON.stringify({
71+
'jquery-integration': true
72+
})
73+
},
74+
npm: {
75+
devDependencies: {
76+
'@ember/jquery': '^0.5.1'
77+
}
78+
}
5979
}
6080
]
6181
};
6282
});
63-
};
83+
};

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
"build": "ember build",
1717
"changelog": "lerna-changelog",
1818
"lint:js": "eslint . --cache",
19-
"start": "ember server",
20-
"test": "npm run test:node && ember try:each",
21-
"test:node": "mocha"
19+
"start": "ember serve",
20+
"test": "ember test",
21+
"test:node": "mocha",
22+
"test:all": "mocha && ember try:each"
2223
},
2324
"dependencies": {
2425
"abortcontroller-polyfill": "^1.2.1",

0 commit comments

Comments
 (0)