Skip to content

Commit

Permalink
Support both ember-concurrency 1.x and 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierke committed Sep 24, 2020
1 parent f471dc8 commit fe5c24d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
- env: EMBER_TRY_SCENARIO=node-tests
- env: EMBER_TRY_SCENARIO=ember-concurrency-1.x
- env: EMBER_TRY_SCENARIO=ember-concurrency-2.x

script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
16 changes: 16 additions & 0 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,22 @@ module.exports = async function() {
'jquery-integration': true
})
}
},
{
name: 'ember-concurrency-1.x',
npm: {
dependencies: {
'ember-concurrency': '^1.3.0'
}
}
},
{
name: 'ember-concurrency-2.x',
npm: {
dependencies: {
'ember-concurrency': '^2.0.0-beta.1'
}
}
}
]
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"ember-cli-babel": "^7.21.0",
"ember-cli-htmlbars": "^5.2.0",
"ember-cli-typescript": "^3.1.4",
"ember-concurrency": "^1.2.1",
"ember-concurrency": ">=1.0.0 <3",
"ember-concurrency-decorators": "^2.0.0",
"ember-text-measurer": "^0.6.0",
"ember-truth-helpers": "^2.1.0"
Expand Down

0 comments on commit fe5c24d

Please sign in to comment.